QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#692228 | #7735. Primitive Root | Rosmontis_L# | WA | 0ms | 3572kb | C++20 | 375b | 2024-10-31 14:08:29 | 2024-10-31 14:08:37 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PLL;
void solve(){
ll p, m, ans = 0;
cin >> p >> m;
ans = m / p + 1;
cout << ans << '\n';
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t = 1;
//cin >> t;
while(t --){
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3572kb
input:
3 2 0 7 11 1145141 998244353
output:
1
result:
wrong answer 2nd lines differ - expected: '2', found: ''