QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#648200 | #7735. Primitive Root | tzw | WA | 1ms | 3636kb | C++23 | 290b | 2024-10-17 17:38:15 | 2024-10-17 17:38:15 |
Judging History
answer
#include<iostream>
#define int long long
using namespace std;
void solve(){
int p,m;
cin >> p >> m;
if(m > 0) cout << m / p + 1 << endl;
else cout << 0 << endl;
}
signed main(){
int t;
cin >> t;
while(t --){
solve();
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3636kb
input:
3 2 0 7 11 1145141 998244353
output:
0 2 872
result:
wrong answer 1st lines differ - expected: '1', found: '0'