QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#250888#4385. RandomYcfhnndWA 37ms3856kbC++20432b2023-11-13 20:33:482023-11-13 20:33:49

Judging History

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

  • [2023-11-13 20:33:49]
  • 评测
  • 测评结果:WA
  • 用时:37ms
  • 内存:3856kb
  • [2023-11-13 20:33:48]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

using i64 = long long;

void solve(){
    int n, m;
    cin >> n >> m;
    int t = n - m;
    if (t == 0){
        cout << 0 << "\n";
    }else{
        cout << 1.0 * t / 2 << "\n"; 
    }
}       

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int T = 1;
    cin >> T;
    while (T--) {
        solve();    
    }
    return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 37ms
memory: 3856kb

input:

100000
42 30
6335 1161
19170 15725
11479 6401
26963 24465
5706 5322
23282 16828
9962 492
2996 2955
4828 609
32392 14605
3903 154
293 77
17422 1295
19719 177
5448 5383
14772 11539
1870 1213
25668 632
17036 9895
28704 23812
31323 30334
17674 4665
15142 7712
28254 6869
25548 2097
32663 95
20038 12860
8...

output:

6
2587
1722.5
2539
1249
192
3227
4735
20.5
2109.5
8893.5
1874.5
108
8063.5
9771
32.5
1616.5
328.5
12518
3570.5
2446
494.5
6504.5
3715
10692.5
11725.5
16284
3589
3853
13375.5
4640.5
10174
119
49
7940.5
1820.5
4580.5
4510
6959.5
10422.5
3503
2065
3458
1278.5
777.5
725
6651.5
306.5
7018
3194
1361
1410....

result:

wrong answer 3rd lines differ - expected: '500001726', found: '1722.5'