QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#604843#9349. Exchanging Giftsucup-team3475#WA 163ms58368kbC++141.7kb2024-10-02 14:12:362024-10-02 14:12:41

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 58368kb

input:

2
1
1 5 3 3 2 1 3
3
1 3 3 3 2
1 4 2 2 3 3
2 1 2

output:

4
6

result:

ok 2 lines

Test #2:

score: -100
Wrong Answer
time: 163ms
memory: 58280kb

input:

10000
100
1 30 371028678 371028678 371028678 716418076 398221499 591504380 398221499 398221499 591504380 777141390 398221499 591504380 591504380 777141390 287847807 716418076 777141390 716418076 777141390 287847807 287847807 287847807 371028678 371028678 398221499 777141390 371028678 6827702 6827702...

output:

700
68
332
284
180
1526
194
1246
704
0
484
252
52
436
2212
400
1526
398
620
1052
5660
510
1044
344
628
272
0
124
1116
702
412
1604
238
2184
128
5360
2556
2292
832
876
620
544
520
5404
0
496
1994
88
0
678
1046
690
68
32
162
782
1358
1162
278
1104
1480
2886
176
278
1134
2442
752
500
412
236
1398
0
606...

result:

wrong answer 5th lines differ - expected: '131', found: '180'