QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#403160#2598. Permutation MatrixdXqwqAC ✓37ms15800kbC++231.9kb2024-05-01 22:02:392024-05-01 22:02:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

NO

result:

ok OK.

Test #2:

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

input:

2

output:

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

result:

ok OK.

Test #3:

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

input:

3

output:

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

result:

ok OK.

Test #4:

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

input:

4

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 
49 52 53 56 57 60 61 64 33 36 37 40 41 44 45 48 
65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 
113 116 117 120 121 124 125 128 97 100 101 104 105 108 109 112 
129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 
177 180 181 184 185 188 1...

result:

ok OK.

Test #5:

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

input:

5

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 
97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 
129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 ...

result:

ok OK.

Test #6:

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

input:

6

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 
193 196 197 200 201 204 205 208 209 212 213 216 217 220 221 224 225 228 229 232 233 236 237 2...

result:

ok OK.

Test #7:

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

input:

7

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 17...

result:

ok OK.

Test #8:

score: 0
Accepted
time: 4ms
memory: 5044kb

input:

8

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 17...

result:

ok OK.

Test #9:

score: 0
Accepted
time: 6ms
memory: 7748kb

input:

9

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 17...

result:

ok OK.

Test #10:

score: 0
Accepted
time: 37ms
memory: 15800kb

input:

10

output:

YES
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 17...

result:

ok OK.