QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#499875#6694. Math ProblemHuangHanShengWA 24ms3608kbC++231.0kb2024-07-31 19:52:432024-07-31 19:52:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3608kb

input:

4
101 4 207 3 5
8 3 16 100 1
114 514 19 19 810
1 1 3 1 1

output:

11
2
0
-1

result:

ok 4 number(s): "11 2 0 -1"

Test #2:

score: -100
Wrong Answer
time: 24ms
memory: 3588kb

input:

100000
9 5 7 7674 78731
4 3 4 58482 93736
1 4 3 42396 22960
6 2 2 4534 73466
5 7 7 56203 19376
1 7 10 77129 84094
8 3 3 72793 89258
10 10 3 94847 42455
7 4 7 79273 90760
2 7 3 78496 99140
4 4 9 47018 14651
3 7 8 60936 4453
8 6 4 57267 6293
8 7 3 81697 99664
2 10 10 3935 30951
8 9 7 91391 70670
5 8 8...

output:

15348
0
0
0
19376
0
72793
0
0
78496
14651
4453
0
81697
3935
0
36522
21244
0
0
0
65123
30063
0
28926
15947
72016
6193
0
2516
0
0
3653
0
11302
20703
41343
50014
58015
38743
0
38963
26747
0
0
45733
31787
69321
34196
1674
27200
4065
0
0
0
0
3904
0
10051
29973
2193
31486
0
77982
94633
17838
55504
8083
69...

result:

wrong answer 1st numbers differ - expected: '7674', found: '15348'