Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
229881 | 2224梁翁思译 | *小美的外卖订单编号 | C++ | Accepted | 100 | 56 MS | 272 KB | 254 | 2024-01-07 13:32:42 |
#include<bits/stdc++.h> using namespace std; int m,x; int t; int main() { cin >> t; while(t--) { cin >> m >> x; if(x % m == 0) { cout << m << endl; continue; } else { cout << x % m << endl; } } return 0; }