QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#533372#2598. Permutation MatrixUrdAC ✓33ms3712kbC++17740b2024-08-25 21:05:242024-08-25 21:05:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

NO

result:

ok OK.

Test #2:

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

input:

2

output:

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

result:

ok OK.

Test #3:

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

input:

3

output:

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

result:

ok OK.

Test #4:

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

input:

4

output:

YES
1 193 2 194 3 195 4 196 5 197 6 198 7 199 8 200 
16 208 15 207 14 206 13 205 12 204 11 203 10 202 9 201 
17 209 18 210 19 211 20 212 21 213 22 214 23 215 24 216 
32 224 31 223 30 222 29 221 28 220 27 219 26 218 25 217 
33 225 34 226 35 227 36 228 37 229 38 230 39 231 40 232 
48 240 47 239 46 238...

result:

ok OK.

Test #5:

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

input:

5

output:

YES
1 769 2 770 3 771 4 772 5 773 6 774 7 775 8 776 9 777 10 778 11 779 12 780 13 781 14 782 15 783 16 784 
32 800 31 799 30 798 29 797 28 796 27 795 26 794 25 793 24 792 23 791 22 790 21 789 20 788 19 787 18 786 17 785 
33 801 34 802 35 803 36 804 37 805 38 806 39 807 40 808 41 809 42 810 43 811 44...

result:

ok OK.

Test #6:

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

input:

6

output:

YES
1 3073 2 3074 3 3075 4 3076 5 3077 6 3078 7 3079 8 3080 9 3081 10 3082 11 3083 12 3084 13 3085 14 3086 15 3087 16 3088 17 3089 18 3090 19 3091 20 3092 21 3093 22 3094 23 3095 24 3096 25 3097 26 3098 27 3099 28 3100 29 3101 30 3102 31 3103 32 3104 
64 3136 63 3135 62 3134 61 3133 60 3132 59 3131 ...

result:

ok OK.

Test #7:

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

input:

7

output:

YES
1 12289 2 12290 3 12291 4 12292 5 12293 6 12294 7 12295 8 12296 9 12297 10 12298 11 12299 12 12300 13 12301 14 12302 15 12303 16 12304 17 12305 18 12306 19 12307 20 12308 21 12309 22 12310 23 12311 24 12312 25 12313 26 12314 27 12315 28 12316 29 12317 30 12318 31 12319 32 12320 33 12321 34 12322...

result:

ok OK.

Test #8:

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

input:

8

output:

YES
1 49153 2 49154 3 49155 4 49156 5 49157 6 49158 7 49159 8 49160 9 49161 10 49162 11 49163 12 49164 13 49165 14 49166 15 49167 16 49168 17 49169 18 49170 19 49171 20 49172 21 49173 22 49174 23 49175 24 49176 25 49177 26 49178 27 49179 28 49180 29 49181 30 49182 31 49183 32 49184 33 49185 34 49186...

result:

ok OK.

Test #9:

score: 0
Accepted
time: 10ms
memory: 3652kb

input:

9

output:

YES
1 196609 2 196610 3 196611 4 196612 5 196613 6 196614 7 196615 8 196616 9 196617 10 196618 11 196619 12 196620 13 196621 14 196622 15 196623 16 196624 17 196625 18 196626 19 196627 20 196628 21 196629 22 196630 23 196631 24 196632 25 196633 26 196634 27 196635 28 196636 29 196637 30 196638 31 19...

result:

ok OK.

Test #10:

score: 0
Accepted
time: 33ms
memory: 3632kb

input:

10

output:

YES
1 786433 2 786434 3 786435 4 786436 5 786437 6 786438 7 786439 8 786440 9 786441 10 786442 11 786443 12 786444 13 786445 14 786446 15 786447 16 786448 17 786449 18 786450 19 786451 20 786452 21 786453 22 786454 23 786455 24 786456 25 786457 26 786458 27 786459 28 786460 29 786461 30 786462 31 78...

result:

ok OK.