QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#692228#7735. Primitive RootRosmontis_L#WA 0ms3572kbC++20375b2024-10-31 14:08:292024-10-31 14:08:37

Judging History

你现在查看的是最新测评结果

  • [2024-10-31 14:08:37]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3572kb
  • [2024-10-31 14:08:29]
  • 提交

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: ''