QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#72748#5423. Perfect MatchinglarryzhongRE 2ms3356kbC++172.0kb2023-01-18 21:57:352023-01-18 21:57:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3356kb

input:

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

output:

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

result:

ok 3 Cases (3 test cases)

Test #2:

score: -100
Dangerous Syscalls

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
99987 99988
99999 100000
99991 99998
99989 99990
99974 99986
99971 99972
99973 99975
99968 99974
99953 99955
99955 99956
99959 99961
99932 99933
99911 99912
99815 99816
99817 99818
99820 99824
99819 99825
99826 99834
99877 99879
99743 99744
99695 99696
99697 99713
99611 99612
99533 99534
99535 9...

result: