Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
256320 刘明樾 *小美的外卖订单编号 C++ 通过 100 52 MS 272 KB 301 2024-04-17 21:17:11

Tests(5/5):


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


测评信息: