QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#303302#8004. Bit Componentucup-team1878#AC ✓13ms5448kbC++203.0kb2024-01-12 05:24:462024-01-12 05:24:46

詳細信息

Test #1:

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

input:

1

output:

YES
1

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
2 3 1

result:

ok answer is 1

Test #4:

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

input:

4

output:

NO

result:

ok answer is 0

Test #5:

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

input:

5

output:

NO

result:

ok answer is 0

Test #6:

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
1 3 2 6 4 7 5

result:

ok answer is 1

Test #8:

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

input:

8

output:

NO

result:

ok answer is 0

Test #9:

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

input:

9

output:

NO

result:

ok answer is 0

Test #10:

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

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

input:

13

output:

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

result:

ok answer is 1

Test #14:

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

input:

14

output:

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

result:

ok answer is 1

Test #15:

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

input:

15

output:

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

result:

ok answer is 1

Test #16:

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

input:

16

output:

NO

result:

ok answer is 0

Test #17:

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

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

input:

23

output:

NO

result:

ok answer is 0

Test #19:

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

input:

24

output:

NO

result:

ok answer is 0

Test #20:

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

input:

25

output:

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

result:

ok answer is 1

Test #21:

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

input:

26

output:

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

result:

ok answer is 1

Test #22:

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

input:

27

output:

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

result:

ok answer is 1

Test #23:

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

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

output:

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

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

output:

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

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

output:

YES
128 160 168 170 171 169 173 165 167 175 172 164 166 174 162 163 161 177 159 191 176 144 145 147 179 146 178 150 182 148 180 151 183 149 181 153 185 143 152 184 136 138 154 186 139 155 187 137 141 157 189 133 135 140 156 188 132 134 142 158 190 130 131 129 193 127 192 64 80 208 81 209 83 211 82 2...

result:

ok answer is 1

Test #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

output:

YES
256 320 336 337 339 338 342 340 343 341 345 335 351 344 328 330 346 331 347 329 333 349 325 327 332 348 324 326 334 350 322 323 321 353 319 383 352 288 296 360 298 362 299 363 297 361 301 365 293 357 295 359 303 367 300 364 292 356 294 358 302 366 290 354 291 355 289 305 369 287 304 368 272 273 ...

result:

ok answer is 1

Test #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

output:

YES
512 640 672 680 682 683 681 685 677 679 687 684 676 678 686 674 675 673 689 671 703 688 656 657 659 691 658 690 662 694 660 692 663 695 661 693 665 697 655 664 696 648 650 666 698 651 667 699 649 653 669 701 645 647 652 668 700 644 646 654 670 702 642 643 641 705 639 767 704 576 592 720 593 721 ...

result:

ok answer is 1

Test #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

output:

YES
1024 1280 1344 1360 1361 1363 1362 1366 1364 1367 1365 1369 1359 1375 1368 1352 1354 1370 1355 1371 1353 1357 1373 1349 1351 1356 1372 1348 1350 1358 1374 1346 1347 1345 1377 1343 1407 1376 1312 1320 1384 1322 1386 1323 1387 1321 1385 1325 1389 1317 1381 1319 1383 1327 1391 1324 1388 1316 1380 1...

result:

ok answer is 1

Test #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

output:

YES
2048 2560 2688 2720 2728 2730 2731 2729 2733 2725 2727 2735 2732 2724 2726 2734 2722 2723 2721 2737 2719 2751 2736 2704 2705 2707 2739 2706 2738 2710 2742 2708 2740 2711 2743 2709 2741 2713 2745 2703 2712 2744 2696 2698 2714 2746 2699 2715 2747 2697 2701 2717 2749 2693 2695 2700 2716 2748 2692 2...

result:

ok answer is 1

Test #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

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

input:

7989

output:

YES
4096 5120 5376 5440 5456 5457 5459 5458 5462 5460 5463 5461 5465 5455 5471 5464 5448 5450 5466 5451 5467 5449 5453 5469 5445 5447 5452 5468 5444 5446 5454 5470 5442 5443 5441 5473 5439 5503 5472 5408 5416 5480 5418 5482 5419 5483 5417 5481 5421 5485 5413 5477 5415 5479 5423 5487 5420 5484 5412 5...

result:

ok answer is 1

Test #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

output:

YES
8192 10240 10752 10880 10912 10920 10922 10923 10921 10925 10917 10919 10927 10924 10916 10918 10926 10914 10915 10913 10929 10911 10943 10928 10896 10897 10899 10931 10898 10930 10902 10934 10900 10932 10903 10935 10901 10933 10905 10937 10895 10904 10936 10888 10890 10906 10938 10891 10907 109...

result:

ok answer is 1

Test #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

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

input:

28913

output:

YES
16384 20480 21504 21760 21824 21840 21841 21843 21842 21846 21844 21847 21845 21849 21839 21855 21848 21832 21834 21850 21835 21851 21833 21837 21853 21829 21831 21836 21852 21828 21830 21838 21854 21826 21827 21825 21857 21823 21887 21856 21792 21800 21864 21802 21866 21803 21867 21801 21865 21...

result:

ok answer is 1

Test #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

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

input:

54980

output:

YES
32768 40960 43008 43520 43648 43680 43688 43690 43691 43689 43693 43685 43687 43695 43692 43684 43686 43694 43682 43683 43681 43697 43679 43711 43696 43664 43665 43667 43699 43666 43698 43670 43702 43668 43700 43671 43703 43669 43701 43673 43705 43663 43672 43704 43656 43658 43674 43706 43659 43...

result:

ok answer is 1

Test #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

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

input:

106284

output:

YES
65536 81920 86016 87040 87296 87360 87376 87377 87379 87378 87382 87380 87383 87381 87385 87375 87391 87384 87368 87370 87386 87371 87387 87369 87373 87389 87365 87367 87372 87388 87364 87366 87374 87390 87362 87363 87361 87393 87359 87423 87392 87328 87336 87400 87338 87402 87339 87403 87337 87...

result:

ok answer is 1

Test #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

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

input:

200000

output:

YES
131072 163840 172032 174080 174592 174720 174752 174760 174762 174763 174761 174765 174757 174759 174767 174764 174756 174758 174766 174754 174755 174753 174769 174751 174783 174768 174736 174737 174739 174771 174738 174770 174742 174774 174740 174772 174743 174775 174741 174773 174745 174777 17...

result:

ok answer is 1

Test #49:

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

input:

3073

output:

YES
2048 2560 2688 2720 2728 2730 2731 2729 2733 2725 2727 2735 2732 2724 2726 2734 2722 2723 2721 2737 2719 2751 2736 2704 2705 2707 2739 2706 2738 2710 2742 2708 2740 2711 2743 2709 2741 2713 2745 2703 2712 2744 2696 2698 2714 2746 2699 2715 2747 2697 2701 2717 2749 2693 2695 2700 2716 2748 2692 2...

result:

ok answer is 1

Test #50:

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

input:

16383

output:

YES
8192 10240 10752 10880 10912 10920 10922 10923 10921 10925 10917 10919 10927 10924 10916 10918 10926 10914 10915 10913 10929 10911 10943 10928 10896 10897 10899 10931 10898 10930 10902 10934 10900 10932 10903 10935 10901 10933 10905 10937 10895 10904 10936 10888 10890 10906 10938 10891 10907 109...

result:

ok answer is 1

Test #51:

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

input:

32767

output:

YES
16384 20480 21504 21760 21824 21840 21841 21843 21842 21846 21844 21847 21845 21849 21839 21855 21848 21832 21834 21850 21835 21851 21833 21837 21853 21829 21831 21836 21852 21828 21830 21838 21854 21826 21827 21825 21857 21823 21887 21856 21792 21800 21864 21802 21866 21803 21867 21801 21865 21...

result:

ok answer is 1

Test #52:

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

input:

399

output:

YES
256 320 336 337 339 338 342 340 343 341 345 335 351 344 328 330 346 331 347 329 333 349 325 327 332 348 324 326 334 350 322 323 321 353 319 383 352 288 296 360 298 362 299 363 297 361 301 365 293 357 295 359 303 367 300 364 292 356 294 358 302 366 290 354 291 355 289 305 369 287 304 368 272 273 ...

result:

ok answer is 1

Test #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

output:

YES
128 160 168 170 171 169 173 165 167 175 172 164 166 174 162 163 161 177 159 191 176 144 145 147 179 146 178 150 182 148 180 151 183 149 181 153 185 143 152 184 136 138 154 186 139 155 187 137 141 157 189 133 135 140 156 188 132 134 142 158 190 130 131 129 193 127 192 64 80 208 81 209 83 211 82 2...

result:

ok answer is 1

Extra Test:

score: 0
Extra Test Passed