QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#595385#9349. Exchanging GiftsMaMengQiWA 192ms8060kbC++231.9kb2024-09-28 13:35:502024-09-28 13:35:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 8060kb

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: 192ms
memory: 8032kb

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
297
131
1048
194
667
729
320
508
252
35
351
1228
238
1025
354
383
571
4272
340
1044
199
448
190
729
69
841
546
247
883
138
1633
91
3308
2556
1280
488
618
407
381
383
2865
703
496
1202
53
77
415
662
380
41
18
91
505
818
603
241
764
1227
1802
176
187
817
1489
460
296
238
247
1028
95
606
169...

result:

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