QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#648200#7735. Primitive RoottzwWA 1ms3636kbC++23290b2024-10-17 17:38:152024-10-17 17:38:15

Judging History

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

  • [2024-10-17 17:38:15]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3636kb
  • [2024-10-17 17:38:15]
  • 提交

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'