QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#375307#5423. Perfect MatchingduyiWA 454ms10188kbC++142.5kb2024-04-03 08:10:452024-04-03 08:10:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok 3 Cases (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 454ms
memory: 10188kb

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
99977 99979
99821 99823
99988 99986
99980 99981
99976 99974
99970 99968
99949 99947
99929 99930
99922 99921
99909 99908
99904 99902
99891 99890
99880 99878
99846 99847
99835 99833
99827 99828
99810 99811
99805 99804
99802 99800
99789 99788
99786 99787
99782 99783
99777 99778
99775 99774
99755 99...

result:

wrong answer abs(99920-99910) != abs(a[99920]-a[99910]) (test case 1)