QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#595347#9349. Exchanging GiftsZhaoZiLongWA 109ms9920kbC++201.9kb2024-09-28 13:30:182024-09-28 13:30:18

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 109ms
memory: 9920kb

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
-886
78
-414
-104
382
-688
-2392
-346
252
35
-2016
808
238
710
-228
316
571
4272
-94
1044
199
448
190
-82
69
-428
-888
194
646
108
1633
44
3308
2556
1280
332
396
407
342
-374
2598
-1836
316
1202
53
-292
-358
-258
380
-28
12
58
505
818
366
22
748
1038
1802
176
187
556
1489
460
-72
196
-42
...

result:

wrong answer 4th lines differ - expected: '284', found: '-886'