Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
229878 232218施彦恺 *小美的外卖订单编号 C++ 通过 100 56 MS 268 KB 220 2024-01-07 13:31:10

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ int a,b; cin>>a>>b; if(b%a==0){ cout<<a<<endl; } else{ cout<<b%a<<endl; } } return 0; }


测评信息: