QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#80152#5423. Perfect Matchingybw051114WA 373ms18300kbC++145.8kb2023-02-22 19:17:412023-02-22 19:17:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 8064kb

input:

3
6
14 22 33 11 25 36
4
100 10 98 12
4
1 3 5 7

output:

Yes
1 4
2 5
3 6
Yes
1 3
2 4
No

result:

ok 3 Cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 373ms
memory: 18300kb

input:

10
100000
0 -1 -2 -3 -4 -5 -2 -7 -8 -9 -10 -9 -12 13 14 15 -16 -17 -18 19 20 19 -22 -21 -20 -25 -26 -27 -28 -27 -26 31 30 29 -34 -35 -34 39 38 37 42 41 42 47 44 45 46 49 48 -53 -52 -51 -56 -55 -54 55 56 57 -58 -59 -60 61 62 63 64 65 64 67 66 69 70 73 72 73 74 73 76 75 74 79 80 81 -84 -83 -84 89 86 8...

output:

Yes
11 12
21 22
5 7
30 31
33 34
78 79
99 100
123 124
129 130
138 139
201 202
203 205
225 226
242 244
287 289
291 292
309 310
315 316
321 322
335 337
362 364
372 373
378 379
380 382
389 391
396 397
417 418
435 436
450 451
459 460
462 463
480 481
509 511
515 517
518 520
524 526
554 556
567 568
584 586...

result:

wrong answer abs(3-25) != abs(a[3]-a[25]) (test case 1)