QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#499928#6694. Math ProblemZhangYiDeWA 19ms3888kbC++23984b2024-07-31 20:16:202024-07-31 20:16:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0
Accepted
time: 9ms
memory: 3888kb

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:

7674
0
22960
0
19376
77129
72793
84910
0
78496
29302
4453
0
81697
3935
70670
36522
21244
0
0
0
100934
30063
0
57852
31894
72016
6193
9486
2516
27536
0
7306
73625
11302
13802
41343
50014
58015
38743
65165
38963
26747
0
42044
45733
63574
69321
34196
1674
27200
8130
0
46609
53621
11696
7808
4630
10051
...

result:

ok 100000 numbers

Test #3:

score: -100
Wrong Answer
time: 19ms
memory: 3740kb

input:

100000
72 56 61 725468539 908406897
78 7 86 485275009 977836982
25 57 29 104624183 334780226
48 74 44 805881518 26082346
87 26 31 224468594 59732782
55 29 99 697738785 876206855
96 85 8 998474252 490312988
11 22 7 298977007 759215221
43 72 22 785798936 836075792
16 16 29 304049814 445858780
86 24 36...

output:

725468539
970550018
104624183
26082346
119465564
1395477570
0
298977007
785798936
304049814
488620044
1112696878
150581202
929490259
258912618
156420265
767475208
623063452
158730933
211070701
576023224
525233
66950902
893398127
1538977472
552877592
365438928
274813702
347240596
413914126
411352478
...

result:

wrong answer 45th numbers differ - expected: '2585488976', found: '2147483647'