QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#354588#8004. Bit Componentucup-team864#AC ✓6ms5444kbC++231.9kb2024-03-15 18:04:362024-03-15 18:04:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

YES
1

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
2 3 1

result:

ok answer is 1

Test #4:

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

input:

4

output:

NO

result:

ok answer is 0

Test #5:

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

input:

5

output:

NO

result:

ok answer is 0

Test #6:

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
4 6 5 7 1 3 2 

result:

ok answer is 1

Test #8:

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

input:

8

output:

NO

result:

ok answer is 0

Test #9:

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

input:

9

output:

NO

result:

ok answer is 0

Test #10:

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

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

input:

13

output:

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

result:

ok answer is 1

Test #14:

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

input:

14

output:

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

result:

ok answer is 1

Test #15:

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

input:

15

output:

YES
8 12 10 14 11 15 9 13 5 7 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: 3496kb

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

input:

23

output:

NO

result:

ok answer is 0

Test #19:

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

input:

24

output:

NO

result:

ok answer is 0

Test #20:

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

input:

25

output:

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

result:

ok answer is 1

Test #21:

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

input:

26

output:

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

result:

ok answer is 1

Test #22:

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

input:

27

output:

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

result:

ok answer is 1

Test #23:

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

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

output:

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

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

output:

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

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

output:

YES
128 192 160 176 144 208 152 216 184 168 136 200 140 204 172 188 156 220 148 212 180 164 132 196 134 198 166 182 150 214 158 190 174 142 206 138 202 170 186 154 218 146 210 178 162 130 194 131 195 163 179 147 211 155 219 187 171 139 203 143 207 175 191 159 151 215 183 167 135 199 133 197 165 181 ...

result:

ok answer is 1

Test #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

output:

YES
256 384 320 448 352 288 416 304 432 368 336 464 272 400 280 408 344 472 376 312 440 296 424 360 328 456 264 392 268 396 332 460 364 300 428 316 444 380 348 284 412 276 404 340 468 372 308 436 292 420 356 324 452 260 388 262 390 326 454 358 294 422 310 438 374 342 470 278 406 286 414 350 382 318 ...

result:

ok answer is 1

Test #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

output:

YES
512 768 640 896 704 576 832 608 864 736 672 928 544 800 560 816 688 752 624 880 592 848 720 656 912 528 784 536 792 664 920 728 600 856 632 888 760 696 568 824 552 808 680 744 616 872 584 840 712 648 904 520 776 524 780 652 908 716 588 844 620 876 748 684 556 812 572 828 700 764 636 892 604 860 ...

result:

ok answer is 1

Test #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

output:

YES
1024 1536 1280 1408 1152 1216 1472 1344 1088 1600 1120 1632 1376 1504 1248 1184 1440 1312 1056 1568 1072 1584 1328 1456 1200 1264 1520 1392 1136 1648 1104 1616 1360 1488 1232 1168 1424 1296 1040 1552 1048 1560 1304 1432 1176 1240 1496 1368 1112 1624 1144 1400 1528 1272 1208 1464 1336 1080 1592 1...

result:

ok answer is 1

Test #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

output:

YES
2048 3072 2560 2816 2304 3328 2432 2944 2688 2176 3200 2240 3264 2752 3008 2496 2368 2880 2624 2112 3136 2144 3168 2656 2912 2400 2528 3040 2784 2272 3296 2208 3232 2720 2976 2464 2336 2848 2592 2080 3104 2096 3120 2608 2864 2352 2480 2992 2736 2224 3248 2288 3312 2800 3056 2544 2416 2928 2672 2...

result:

ok answer is 1

Test #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

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

input:

7989

output:

YES
4096 6144 5120 7168 5632 7680 4608 6656 4864 6912 5888 7936 5376 7424 4352 6400 4480 6528 5504 7552 6016 4992 7040 4736 6784 5760 7808 5248 7296 4224 6272 4288 6336 5312 7360 5824 7872 4800 6848 5056 7104 6080 5568 7616 4544 6592 4416 6464 5440 7488 5952 4928 6976 4672 6720 5696 7744 5184 7232 4...

result:

ok answer is 1

Test #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

output:

YES
8192 12288 10240 11264 9216 13312 9728 13824 11776 10752 8704 12800 8960 13056 11008 12032 9984 14080 9472 13568 11520 10496 8448 12544 8576 12672 10624 11648 9600 13696 10112 12160 11136 9088 13184 8832 12928 10880 11904 9856 13952 9344 13440 11392 10368 8320 12416 8384 12480 10432 11456 9408 1...

result:

ok answer is 1

Test #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

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

input:

28913

output:

YES
16384 24576 20480 28672 22528 18432 26624 19456 27648 23552 21504 17408 25600 17920 26112 22016 24064 19968 28160 18944 27136 23040 20992 16896 25088 17152 25344 21248 23296 19200 27392 20224 28416 24320 22272 18176 26368 17664 25856 21760 23808 19712 27904 18688 26880 22784 20736 16640 24832 16...

result:

ok answer is 1

Test #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

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

input:

54980

output:

YES
32768 49152 40960 45056 36864 53248 38912 47104 43008 34816 51200 35840 52224 44032 48128 39936 37888 54272 46080 41984 33792 50176 34304 50688 42496 46592 38400 54784 40448 48640 44544 36352 52736 35328 51712 43520 47616 39424 37376 53760 45568 41472 33280 49664 33536 49920 41728 45824 37632 54...

result:

ok answer is 1

Test #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

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

input:

106284

output:

YES
65536 98304 81920 90112 73728 77824 94208 86016 69632 102400 71680 104448 88064 96256 79872 75776 92160 83968 67584 100352 68608 101376 84992 93184 76800 80896 97280 89088 72704 105472 70656 103424 87040 95232 78848 74752 91136 82944 66560 99328 67072 99840 83456 91648 75264 79360 95744 87552 71...

result:

ok answer is 1

Test #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

score: 0
Accepted
time: 5ms
memory: 5444kb

input:

200000

output:

YES
131072 196608 163840 180224 147456 155648 188416 172032 139264 143360 176128 192512 159744 151552 184320 167936 135168 137216 169984 186368 153600 161792 194560 178176 145408 141312 174080 190464 157696 149504 182272 165888 133120 198656 134144 199680 166912 183296 150528 158720 191488 175104 14...

result:

ok answer is 1

Test #49:

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

input:

3073

output:

YES
2048 3072 2560 2816 2304 2432 2944 2688 2176 2240 2752 3008 2496 2368 2880 2624 2112 2144 2656 2912 2400 2528 3040 2784 2272 2208 2720 2976 2464 2336 2848 2592 2080 2096 2608 2864 2352 2480 2992 2736 2224 2288 2800 3056 2544 2416 2928 2672 2160 2128 2640 2896 2384 2512 3024 2768 2256 2192 2704 2...

result:

ok answer is 1

Test #50:

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

input:

16383

output:

YES
8192 12288 10240 14336 11264 15360 9216 13312 9728 13824 11776 15872 10752 14848 8704 12800 8960 13056 11008 15104 12032 16128 9984 14080 9472 13568 11520 15616 10496 14592 8448 12544 8576 12672 10624 14720 11648 15744 9600 13696 10112 14208 12160 16256 11136 15232 9088 13184 8832 12928 10880 14...

result:

ok answer is 1

Test #51:

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

input:

32767

output:

YES
16384 24576 20480 28672 22528 30720 18432 26624 19456 27648 23552 31744 21504 29696 17408 25600 17920 26112 22016 30208 24064 32256 19968 28160 18944 27136 23040 31232 20992 29184 16896 25088 17152 25344 21248 29440 23296 31488 19200 27392 20224 28416 24320 32512 22272 30464 18176 26368 17664 25...

result:

ok answer is 1

Test #52:

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

input:

399

output:

YES
256 384 320 352 288 304 368 336 272 280 344 376 312 296 360 328 264 392 268 396 332 364 300 316 380 348 284 276 340 372 308 292 356 324 260 388 262 390 326 358 294 310 374 342 278 286 350 382 318 302 366 334 270 398 266 394 330 362 298 314 378 346 282 274 338 370 306 290 354 322 258 386 259 387 ...

result:

ok answer is 1

Test #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

output:

YES
128 192 160 224 176 144 208 152 216 184 168 136 200 140 204 172 188 156 220 148 212 180 164 228 132 196 134 198 166 182 150 214 158 222 190 174 142 206 138 202 170 186 154 218 146 210 178 162 226 130 194 131 195 163 227 179 147 211 155 219 187 171 139 203 143 207 175 191 159 223 151 215 183 167 ...

result:

ok answer is 1

Extra Test:

score: 0
Extra Test Passed