QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505736#2598. Permutation Matrixucup-team1005#AC ✓40ms8372kbC++201.0kb2024-08-05 10:26:432024-08-05 10:26:43

詳細信息

Test #1:

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

input:

1

output:

NO

result:

ok OK.

Test #2:

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

input:

2

output:

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

result:

ok OK.

Test #3:

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

input:

3

output:

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

result:

ok OK.

Test #4:

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

input:

4

output:

YES
1 224 65 160 5 220 69 156 2 223 66 159 6 219 70 155 
102 187 38 251 98 191 34 255 101 188 37 252 97 192 33 256 
129 96 193 32 133 92 197 28 130 95 194 31 134 91 198 27 
230 59 166 123 226 63 162 127 229 60 165 124 225 64 161 128 
9 216 73 152 13 212 77 148 10 215 74 151 14 211 78 147 
110 179 46...

result:

ok OK.

Test #5:

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

input:

5

output:

YES
1 896 257 640 17 880 273 624 5 892 261 636 21 876 277 620 2 895 258 639 18 879 274 623 6 891 262 635 22 875 278 619 
406 747 150 1003 390 763 134 1019 402 751 146 1007 386 767 130 1023 405 748 149 1004 389 764 133 1020 401 752 145 1008 385 768 129 1024 
513 384 769 128 529 368 785 112 517 380 77...

result:

ok OK.

Test #6:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

6

output:

YES
1 3584 1025 2560 65 3520 1089 2496 17 3568 1041 2544 81 3504 1105 2480 5 3580 1029 2556 69 3516 1093 2492 21 3564 1045 2540 85 3500 1109 2476 2 3583 1026 2559 66 3519 1090 2495 18 3567 1042 2543 82 3503 1106 2479 6 3579 1030 2555 70 3515 1094 2491 22 3563 1046 2539 86 3499 1110 2475 
1622 2987 5...

result:

ok OK.

Test #7:

score: 0
Accepted
time: 1ms
memory: 3864kb

input:

7

output:

YES
1 14336 4097 10240 257 14080 4353 9984 65 14272 4161 10176 321 14016 4417 9920 17 14320 4113 10224 273 14064 4369 9968 81 14256 4177 10160 337 14000 4433 9904 5 14332 4101 10236 261 14076 4357 9980 69 14268 4165 10172 325 14012 4421 9916 21 14316 4117 10220 277 14060 4373 9964 85 14252 4181 1015...

result:

ok OK.

Test #8:

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

input:

8

output:

YES
1 57344 16385 40960 1025 56320 17409 39936 257 57088 16641 40704 1281 56064 17665 39680 65 57280 16449 40896 1089 56256 17473 39872 321 57024 16705 40640 1345 56000 17729 39616 17 57328 16401 40944 1041 56304 17425 39920 273 57072 16657 40688 1297 56048 17681 39664 81 57264 16465 40880 1105 5624...

result:

ok OK.

Test #9:

score: 0
Accepted
time: 13ms
memory: 4524kb

input:

9

output:

YES
1 229376 65537 163840 4097 225280 69633 159744 1025 228352 66561 162816 5121 224256 70657 158720 257 229120 65793 163584 4353 225024 69889 159488 1281 228096 66817 162560 5377 224000 70913 158464 65 229312 65601 163776 4161 225216 69697 159680 1089 228288 66625 162752 5185 224192 70721 158656 32...

result:

ok OK.

Test #10:

score: 0
Accepted
time: 40ms
memory: 8372kb

input:

10

output:

YES
1 917504 262145 655360 16385 901120 278529 638976 4097 913408 266241 651264 20481 897024 282625 634880 1025 916480 263169 654336 17409 900096 279553 637952 5121 912384 267265 650240 21505 896000 283649 633856 257 917248 262401 655104 16641 900864 278785 638720 4353 913152 266497 651008 20737 896...

result:

ok OK.