QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#74672#2598. Permutation MatrixZhaoZiLongAC ✓85ms7640kbC++172.4kb2023-02-03 11:02:432023-02-03 11:02:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

NO

result:

ok OK.

Test #2:

score: 0
Accepted
time: 2ms
memory: 3732kb

input:

2

output:

YES
16 2 14 4 
1 15 3 13 
8 10 6 12 
9 7 11 5 

result:

ok OK.

Test #3:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

3

output:

YES
16 50 14 52 48 18 46 20 
49 15 51 13 17 47 19 45 
56 10 54 12 24 42 22 44 
9 55 11 53 41 23 43 21 
32 34 30 36 64 2 62 4 
33 31 35 29 1 63 3 61 
40 26 38 28 8 58 6 60 
25 39 27 37 57 7 59 5 

result:

ok OK.

Test #4:

score: 0
Accepted
time: 2ms
memory: 3784kb

input:

4

output:

YES
208 50 206 52 48 210 46 212 80 178 78 180 176 82 174 84 
49 207 51 205 209 47 211 45 177 79 179 77 81 175 83 173 
56 202 54 204 216 42 214 44 184 74 182 76 88 170 86 172 
201 55 203 53 41 215 43 213 73 183 75 181 169 87 171 85 
224 34 222 36 64 194 62 196 96 162 94 164 192 66 190 68 
33 223 35 2...

result:

ok OK.

Test #5:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

5

output:

YES
208 818 206 820 816 210 814 212 848 178 846 180 176 850 174 852 720 306 718 308 304 722 302 724 336 690 334 692 688 338 686 340 
817 207 819 205 209 815 211 813 177 847 179 845 849 175 851 173 305 719 307 717 721 303 723 301 689 335 691 333 337 687 339 685 
824 202 822 204 216 810 214 812 184 84...

result:

ok OK.

Test #6:

score: 0
Accepted
time: 3ms
memory: 3728kb

input:

6

output:

YES
3280 818 3278 820 816 3282 814 3284 848 3250 846 3252 3248 850 3246 852 720 3378 718 3380 3376 722 3374 724 3408 690 3406 692 688 3410 686 3412 1232 2866 1230 2868 2864 1234 2862 1236 2896 1202 2894 1204 1200 2898 1198 2900 2768 1330 2766 1332 1328 2770 1326 2772 1360 2738 1358 2740 2736 1362 27...

result:

ok OK.

Test #7:

score: 0
Accepted
time: 5ms
memory: 4156kb

input:

7

output:

YES
3280 13106 3278 13108 13104 3282 13102 3284 13136 3250 13134 3252 3248 13138 3246 13140 13008 3378 13006 3380 3376 13010 3374 13012 3408 12978 3406 12980 12976 3410 12974 3412 13520 2866 13518 2868 2864 13522 2862 13524 2896 13490 2894 13492 13488 2898 13486 2900 2768 13618 2766 13620 13616 2770...

result:

ok OK.

Test #8:

score: 0
Accepted
time: 9ms
memory: 4620kb

input:

8

output:

YES
52432 13106 52430 13108 13104 52434 13102 52436 13136 52402 13134 52404 52400 13138 52398 13140 13008 52530 13006 52532 52528 13010 52526 13012 52560 12978 52558 12980 12976 52562 12974 52564 13520 52018 13518 52020 52016 13522 52014 13524 52048 13490 52046 13492 13488 52050 13486 52052 51920 13...

result:

ok OK.

Test #9:

score: 0
Accepted
time: 27ms
memory: 5652kb

input:

9

output:

YES
52432 209714 52430 209716 209712 52434 209710 52436 209744 52402 209742 52404 52400 209746 52398 209748 209616 52530 209614 52532 52528 209618 52526 209620 52560 209586 52558 209588 209584 52562 209582 52564 210128 52018 210126 52020 52016 210130 52014 210132 52048 210098 52046 210100 210096 520...

result:

ok OK.

Test #10:

score: 0
Accepted
time: 85ms
memory: 7640kb

input:

10

output:

YES
838864 209714 838862 209716 209712 838866 209710 838868 209744 838834 209742 838836 838832 209746 838830 209748 209616 838962 209614 838964 838960 209618 838958 209620 838992 209586 838990 209588 209584 838994 209582 838996 210128 838450 210126 838452 838448 210130 838446 210132 838480 210098 83...

result:

ok OK.