QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#304082#8004. Bit Componentucup-team2929#AC ✓13ms6920kbC++203.4kb2024-01-13 14:00:092024-01-13 14:00:09

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

YES
1 

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
1 3 2 

result:

ok answer is 1

Test #4:

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

input:

4

output:

NO

result:

ok answer is 0

Test #5:

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

input:

5

output:

NO

result:

ok answer is 0

Test #6:

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
1 3 2 6 4 5 7 

result:

ok answer is 1

Test #8:

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

input:

8

output:

NO

result:

ok answer is 0

Test #9:

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

input:

9

output:

NO

result:

ok answer is 0

Test #10:

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

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

input:

13

output:

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

result:

ok answer is 1

Test #14:

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

input:

14

output:

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

result:

ok answer is 1

Test #15:

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

input:

15

output:

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

result:

ok answer is 1

Test #16:

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

input:

16

output:

NO

result:

ok answer is 0

Test #17:

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

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

input:

23

output:

NO

result:

ok answer is 0

Test #19:

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

input:

24

output:

NO

result:

ok answer is 0

Test #20:

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

input:

25

output:

YES
24 16 17 19 18 22 20 21 23 25 15 13 8 12 14 10 11 9 7 5 4 6 2 3 1 

result:

ok answer is 1

Test #21:

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

input:

26

output:

YES
24 16 17 19 18 26 22 20 21 23 25 15 13 8 12 14 10 11 9 7 5 4 6 2 3 1 

result:

ok answer is 1

Test #22:

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

input:

27

output:

YES
24 16 17 19 27 18 26 22 20 21 23 25 15 13 8 12 14 10 11 9 7 5 4 6 2 3 1 

result:

ok answer is 1

Test #23:

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

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

output:

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

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

output:

YES
96 64 65 67 99 66 98 70 102 68 100 69 101 71 103 73 105 75 74 78 76 72 104 77 79 81 83 82 86 84 85 87 89 91 90 94 92 88 80 93 95 97 63 61 32 48 56 60 62 58 59 57 55 53 52 54 50 51 49 47 45 40 44 46 42 43 41 39 37 36 38 34 35 33 31 29 16 24 28 30 26 27 25 23 21 20 22 18 19 17 15 13 8 12 14 10 11 ...

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

output:

YES
192 128 129 131 195 130 194 134 198 132 196 133 197 135 199 137 201 139 203 138 202 142 206 140 204 136 200 141 205 143 207 145 209 147 211 146 210 150 214 148 212 149 213 151 215 153 217 155 219 154 218 158 156 220 152 216 144 208 157 221 159 161 163 162 166 164 165 167 169 171 170 174 172 168 ...

result:

ok answer is 1

Test #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

output:

YES
384 256 257 259 387 258 386 262 390 260 388 261 389 263 391 265 393 267 395 266 394 270 398 268 396 264 392 269 397 271 399 273 401 275 403 274 402 278 406 276 404 277 405 279 407 281 409 283 411 282 410 286 414 284 412 280 408 272 400 285 413 287 415 289 417 291 419 290 418 294 422 292 420 293 ...

result:

ok answer is 1

Test #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

output:

YES
768 512 513 515 771 514 770 518 774 516 772 517 773 519 775 521 777 523 779 522 778 526 782 524 780 520 776 525 781 527 783 529 785 531 787 530 786 534 790 532 788 533 789 535 791 537 793 539 795 538 794 542 798 540 796 536 792 528 784 541 797 543 799 545 801 547 803 546 802 550 806 548 804 549 ...

result:

ok answer is 1

Test #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

output:

YES
1536 1024 1025 1027 1539 1026 1538 1030 1542 1028 1540 1029 1541 1031 1543 1033 1545 1035 1547 1034 1546 1038 1550 1036 1548 1032 1544 1037 1549 1039 1551 1041 1553 1043 1555 1042 1554 1046 1558 1044 1556 1045 1557 1047 1559 1049 1561 1051 1563 1050 1562 1054 1566 1052 1564 1048 1560 1040 1552 1...

result:

ok answer is 1

Test #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

output:

YES
3072 2048 2049 2051 3075 2050 3074 2054 3078 2052 3076 2053 3077 2055 3079 2057 3081 2059 3083 2058 3082 2062 3086 2060 3084 2056 3080 2061 3085 2063 3087 2065 3089 2067 3091 2066 3090 2070 3094 2068 3092 2069 3093 2071 3095 2073 3097 2075 3099 2074 3098 2078 3102 2076 3100 2072 3096 2064 3088 2...

result:

ok answer is 1

Test #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

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

input:

7989

output:

YES
6144 4096 4097 4099 6147 4098 6146 4102 6150 4100 6148 4101 6149 4103 6151 4105 6153 4107 6155 4106 6154 4110 6158 4108 6156 4104 6152 4109 6157 4111 6159 4113 6161 4115 6163 4114 6162 4118 6166 4116 6164 4117 6165 4119 6167 4121 6169 4123 6171 4122 6170 4126 6174 4124 6172 4120 6168 4112 6160 4...

result:

ok answer is 1

Test #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

output:

YES
12288 8192 8193 8195 12291 8194 12290 8198 12294 8196 12292 8197 12293 8199 12295 8201 12297 8203 12299 8202 12298 8206 12302 8204 12300 8200 12296 8205 12301 8207 12303 8209 12305 8211 12307 8210 12306 8214 12310 8212 12308 8213 12309 8215 12311 8217 12313 8219 12315 8218 12314 8222 12318 8220 ...

result:

ok answer is 1

Test #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

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

input:

28913

output:

YES
24576 16384 16385 16387 24579 16386 24578 16390 24582 16388 24580 16389 24581 16391 24583 16393 24585 16395 24587 16394 24586 16398 24590 16396 24588 16392 24584 16397 24589 16399 24591 16401 24593 16403 24595 16402 24594 16406 24598 16404 24596 16405 24597 16407 24599 16409 24601 16411 24603 16...

result:

ok answer is 1

Test #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

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

input:

54980

output:

YES
49152 32768 32769 32771 49155 32770 49154 32774 49158 32772 49156 32773 49157 32775 49159 32777 49161 32779 49163 32778 49162 32782 49166 32780 49164 32776 49160 32781 49165 32783 49167 32785 49169 32787 49171 32786 49170 32790 49174 32788 49172 32789 49173 32791 49175 32793 49177 32795 49179 32...

result:

ok answer is 1

Test #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

score: 0
Accepted
time: 7ms
memory: 5284kb

input:

106284

output:

YES
98304 65536 65537 65539 98307 65538 98306 65542 98310 65540 98308 65541 98309 65543 98311 65545 98313 65547 98315 65546 98314 65550 98318 65548 98316 65544 98312 65549 98317 65551 98319 65553 98321 65555 98323 65554 98322 65558 98326 65556 98324 65557 98325 65559 98327 65561 98329 65563 98331 65...

result:

ok answer is 1

Test #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

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

input:

200000

output:

YES
196608 131072 131073 131075 196611 131074 196610 131078 196614 131076 196612 131077 196613 131079 196615 131081 196617 131083 196619 131082 196618 131086 196622 131084 196620 131080 196616 131085 196621 131087 196623 131089 196625 131091 196627 131090 196626 131094 196630 131092 196628 131093 19...

result:

ok answer is 1

Test #49:

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

input:

3073

output:

YES
3072 2048 2049 2051 2050 2054 2052 2053 2055 2057 2059 2058 2062 2060 2056 2061 2063 2065 2067 2066 2070 2068 2069 2071 2073 2075 2074 2078 2076 2072 2064 2077 2079 2081 2083 2082 2086 2084 2085 2087 2089 2091 2090 2094 2092 2088 2093 2095 2097 2099 2098 2102 2100 2101 2103 2105 2107 2106 2110 2...

result:

ok answer is 1

Test #50:

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

input:

16383

output:

YES
1 3 2 6 4 5 7 9 11 10 14 12 8 13 15 17 19 18 22 20 21 23 25 27 26 30 28 24 16 29 31 33 35 34 38 36 37 39 41 43 42 46 44 40 45 47 49 51 50 54 52 53 55 57 59 58 62 60 56 48 32 61 63 65 67 66 70 68 69 71 73 75 74 78 76 72 77 79 81 83 82 86 84 85 87 89 91 90 94 92 88 80 93 95 97 99 98 102 100 101 10...

result:

ok answer is 1

Test #51:

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

input:

32767

output:

YES
1 3 2 6 4 5 7 9 11 10 14 12 8 13 15 17 19 18 22 20 21 23 25 27 26 30 28 24 16 29 31 33 35 34 38 36 37 39 41 43 42 46 44 40 45 47 49 51 50 54 52 53 55 57 59 58 62 60 56 48 32 61 63 65 67 66 70 68 69 71 73 75 74 78 76 72 77 79 81 83 82 86 84 85 87 89 91 90 94 92 88 80 93 95 97 99 98 102 100 101 10...

result:

ok answer is 1

Test #52:

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

input:

399

output:

YES
384 256 257 259 387 258 386 262 390 260 388 261 389 263 391 265 393 267 395 266 394 270 398 268 396 264 392 269 397 271 399 273 275 274 278 276 277 279 281 283 282 286 284 280 272 285 287 289 291 290 294 292 293 295 297 299 298 302 300 296 301 303 305 307 306 310 308 309 311 313 315 314 318 316 ...

result:

ok answer is 1

Test #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

output:

YES
192 128 129 131 195 130 194 134 198 132 196 133 197 135 199 137 201 139 203 138 202 142 206 140 204 136 200 141 205 143 207 145 209 147 211 146 210 150 214 148 212 149 213 151 215 153 217 155 219 154 218 158 222 156 220 152 216 144 208 157 221 159 223 161 225 163 227 162 226 166 164 228 165 167 ...

result:

ok answer is 1

Extra Test:

score: 0
Extra Test Passed