QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#304096#8004. Bit Componentucup-team149#AC ✓11ms4968kbC++172.4kb2024-01-13 14:14:162024-01-13 14:14:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

YES
1

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
1 3 2

result:

ok answer is 1

Test #4:

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

input:

4

output:

NO

result:

ok answer is 0

Test #5:

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

input:

5

output:

NO

result:

ok answer is 0

Test #6:

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
6 4 5 7 2 3 1 

result:

ok answer is 1

Test #8:

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

input:

8

output:

NO

result:

ok answer is 0

Test #9:

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

input:

9

output:

NO

result:

ok answer is 0

Test #10:

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

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

input:

13

output:

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

result:

ok answer is 1

Test #14:

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

input:

14

output:

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

result:

ok answer is 1

Test #15:

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

input:

15

output:

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

result:

ok answer is 1

Test #16:

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

input:

16

output:

NO

result:

ok answer is 0

Test #17:

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

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

input:

23

output:

NO

result:

ok answer is 0

Test #19:

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

input:

24

output:

NO

result:

ok answer is 0

Test #20:

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

input:

25

output:

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

result:

ok answer is 1

Test #21:

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

input:

26

output:

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

result:

ok answer is 1

Test #22:

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

input:

27

output:

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

result:

ok answer is 1

Test #23:

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

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

output:

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

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

output:

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

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

output:

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

result:

ok answer is 1

Test #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

output:

YES
384 256 319 447 317 445 313 441 315 443 314 442 318 446 288 416 304 432 312 440 316 444 308 436 310 438 306 434 307 435 305 433 309 437 311 439 295 423 293 421 289 417 291 419 290 418 294 422 292 420 300 428 296 424 302 430 298 426 299 427 297 425 301 429 303 431 271 399 269 397 265 393 267 395 ...

result:

ok answer is 1

Test #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

output:

YES
768 512 639 895 637 893 633 889 635 891 634 890 638 894 576 832 608 864 624 880 632 888 636 892 628 884 630 886 626 882 627 883 625 881 629 885 631 887 615 871 613 869 609 865 611 867 610 866 614 870 612 868 620 876 616 872 622 878 618 874 619 875 617 873 621 877 623 879 591 847 589 845 585 841 ...

result:

ok answer is 1

Test #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

output:

YES
1536 1024 1279 1277 1273 1275 1274 1278 1152 1216 1248 1264 1272 1276 1268 1270 1266 1267 1265 1269 1271 1255 1253 1249 1251 1250 1254 1252 1260 1256 1262 1258 1259 1257 1261 1263 1231 1229 1225 1227 1226 1230 1224 1228 1220 1222 1218 1219 1217 1221 1223 1239 1237 1233 1235 1234 1238 1236 1244 1...

result:

ok answer is 1

Test #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

output:

YES
3072 2048 2559 2557 2553 2555 2554 2558 2304 3328 2432 2496 2528 2544 2552 2556 2548 2550 2546 2547 2545 2549 2551 2535 2533 2529 2531 2530 2534 2532 2540 2536 2542 2538 2539 2537 2541 2543 2511 2509 2505 2507 2506 2510 2504 2508 2500 2502 2498 2499 2497 2501 2503 2519 2517 2513 2515 2514 2518 2...

result:

ok answer is 1

Test #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

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

input:

7989

output:

YES
6144 4096 5119 7167 5117 7165 5113 7161 5115 7163 5114 7162 5118 7166 4608 6656 4864 6912 4992 7040 5056 7104 5088 7136 5104 7152 5112 7160 5116 7164 5108 7156 5110 7158 5106 7154 5107 7155 5105 7153 5109 7157 5111 7159 5095 7143 5093 7141 5089 7137 5091 7139 5090 7138 5094 7142 5092 7140 5100 7...

result:

ok answer is 1

Test #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

output:

YES
12288 8192 10239 10237 10233 10235 10234 10238 9216 13312 9728 13824 9984 14080 10112 10176 10208 10224 10232 10236 10228 10230 10226 10227 10225 10229 10231 10215 10213 10209 10211 10210 10214 10212 10220 10216 10222 10218 10219 10217 10221 10223 10191 10189 10185 10187 10186 10190 10184 10188 ...

result:

ok answer is 1

Test #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

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

input:

28913

output:

YES
24576 16384 20479 28671 20477 28669 20473 28665 20475 28667 20474 28666 20478 28670 18432 26624 19456 27648 19968 28160 20224 28416 20352 28544 20416 28608 20448 28640 20464 28656 20472 28664 20476 28668 20468 28660 20470 28662 20466 28658 20467 28659 20465 28657 20469 28661 20471 28663 20455 28...

result:

ok answer is 1

Test #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

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

input:

54980

output:

YES
49152 32768 40959 40957 40953 40955 40954 40958 36864 53248 38912 39936 40448 40704 40832 40896 40928 40944 40952 40956 40948 40950 40946 40947 40945 40949 40951 40935 40933 40929 40931 40930 40934 40932 40940 40936 40942 40938 40939 40937 40941 40943 40911 40909 40905 40907 40906 40910 40904 40...

result:

ok answer is 1

Test #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

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

input:

106284

output:

YES
98304 65536 81919 81917 81913 81915 81914 81918 73728 77824 79872 80896 81408 81664 81792 81856 81888 81904 81912 81916 81908 81910 81906 81907 81905 81909 81911 81895 81893 81889 81891 81890 81894 81892 81900 81896 81902 81898 81899 81897 81901 81903 81871 81869 81865 81867 81866 81870 81864 81...

result:

ok answer is 1

Test #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

score: 0
Accepted
time: 11ms
memory: 4968kb

input:

200000

output:

YES
196608 131072 163839 163837 163833 163835 163834 163838 147456 155648 159744 161792 162816 163328 163584 163712 163776 163808 163824 163832 163836 163828 163830 163826 163827 163825 163829 163831 163815 163813 163809 163811 163810 163814 163812 163820 163816 163822 163818 163819 163817 163821 16...

result:

ok answer is 1

Test #49:

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

input:

3073

output:

YES
3072 2048 2559 2557 2553 2555 2554 2558 2304 2432 2496 2528 2544 2552 2556 2548 2550 2546 2547 2545 2549 2551 2535 2533 2529 2531 2530 2534 2532 2540 2536 2542 2538 2539 2537 2541 2543 2511 2509 2505 2507 2506 2510 2504 2508 2500 2502 2498 2499 2497 2501 2503 2519 2517 2513 2515 2514 2518 2516 2...

result:

ok answer is 1

Test #50:

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

input:

16383

output:

YES
12288 8192 10239 14335 10237 14333 10233 14329 10235 14331 10234 14330 10238 14334 9216 13312 9728 13824 9984 14080 10112 14208 10176 14272 10208 14304 10224 14320 10232 14328 10236 14332 10228 14324 10230 14326 10226 14322 10227 14323 10225 14321 10229 14325 10231 14327 10215 14311 10213 14309 ...

result:

ok answer is 1

Test #51:

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

input:

32767

output:

YES
24576 16384 20479 28671 20477 28669 20473 28665 20475 28667 20474 28666 20478 28670 18432 26624 19456 27648 19968 28160 20224 28416 20352 28544 20416 28608 20448 28640 20464 28656 20472 28664 20476 28668 20468 28660 20470 28662 20466 28658 20467 28659 20465 28657 20469 28661 20471 28663 20455 28...

result:

ok answer is 1

Test #52:

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

input:

399

output:

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

result:

ok answer is 1

Test #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

output:

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

result:

ok answer is 1

Extra Test:

score: 0
Extra Test Passed