QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#346629#8004. Bit Componentucup-team1876#AC ✓9ms4640kbC++202.5kb2024-03-08 19:42:342024-03-08 19:42:34

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

YES
1

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
1 3 2

result:

ok answer is 1

Test #4:

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

input:

4

output:

NO

result:

ok answer is 0

Test #5:

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

input:

5

output:

NO

result:

ok answer is 0

Test #6:

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
1 3 2 6 4 5 7

result:

ok answer is 1

Test #8:

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

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: 3592kb

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

input:

13

output:

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

result:

ok answer is 1

Test #14:

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

input:

14

output:

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

result:

ok answer is 1

Test #15:

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

input:

15

output:

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

result:

ok answer is 1

Test #16:

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

input:

16

output:

NO

result:

ok answer is 0

Test #17:

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

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

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: 3540kb

input:

25

output:

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

result:

ok answer is 1

Test #21:

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

input:

26

output:

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

result:

ok answer is 1

Test #22:

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

input:

27

output:

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

result:

ok answer is 1

Test #23:

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

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

output:

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

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

output:

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

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 80 112 56 40 104 72 88 120 28 20 52 36 100 68 84 116 60 44 108 76 92 124 14 10 26 18 50 34 98 66 82 114 58 42 106 74 90 122 30 22 54 38 102 70 86 118 62 46 110 78 94 126 7 5 13 9 25 17 49 33 97 65 81 113 57 41 105 73 89 121 29 21 53 37 101 69 85 117 61 45 109 77 ...

result:

ok answer is 1

Test #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 160 224 112 80 208 144 176 240 56 40 104 72 200 136 168 232 120 88 216 152 184 248 28 20 52 36 100 68 196 132 164 228 116 84 212 148 180 244 60 44 108 76 204 140 172 236 124 92 220 156 188 252 14 10 26 18 50 34 98 66 194 130 162 226 114 82 210 146 178 242...

result:

ok answer is 1

Test #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 320 448 224 160 416 288 352 480 112 80 208 144 400 272 336 464 240 176 432 304 368 496 56 40 104 72 200 136 392 264 328 456 232 168 424 296 360 488 120 88 216 152 408 280 344 472 248 184 440 312 376 504 28 20 52 36 100 68 196 132 388 260 324 452 2...

result:

ok answer is 1

Test #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 640 896 448 320 832 576 704 960 224 160 416 288 800 544 672 928 480 352 864 608 736 992 112 80 208 144 400 272 784 528 656 912 464 336 848 592 720 976 240 176 432 304 816 560 688 944 496 368 880 624 752 1008 56 40 104 72 200 136 392 264 77...

result:

ok answer is 1

Test #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 1280 1792 896 640 1664 1152 1408 1920 448 320 832 576 1600 1088 1344 1856 960 704 1728 1216 1472 1984 224 160 416 288 800 544 1568 1056 1312 1824 928 672 1696 1184 1440 1952 480 352 864 608 1632 1120 1376 1888 992 736 1760 1248 1...

result:

ok answer is 1

Test #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

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

input:

7989

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 2560 3584 1792 1280 3328 2304 2816 3840 896 640 1664 1152 3200 2176 2688 3712 1920 1408 3456 2432 2944 3968 448 320 832 576 1600 1088 3136 2112 2624 3648 1856 1344 3392 2368 2880 3904 960 704 1728 1216 3264 2240 2752 37...

result:

ok answer is 1

Test #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 5120 7168 3584 2560 6656 4608 5632 7680 1792 1280 3328 2304 6400 4352 5376 7424 3840 2816 6912 4864 5888 7936 896 640 1664 1152 3200 2176 6272 4224 5248 7296 3712 2688 6784 4736 5760 7808 1920 1408 3456 2432 6...

result:

ok answer is 1

Test #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

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

input:

28913

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 12288 8192 10240 14336 7168 5120 13312 9216 11264 15360 3584 2560 6656 4608 12800 8704 10752 14848 7680 5632 13824 9728 11776 15872 1792 1280 3328 2304 6400 4352 12544 8448 10496 14592 7424 5376 13568 9472 115...

result:

ok answer is 1

Test #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

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

input:

54980

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 12288 8192 24576 16384 20480 28672 14336 10240 26624 18432 22528 30720 7168 5120 13312 9216 25600 17408 21504 29696 15360 11264 27648 19456 23552 31744 3584 2560 6656 4608 12800 8704 25088 16896 20992 29184 14...

result:

ok answer is 1

Test #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

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

input:

106284

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 12288 8192 24576 16384 49152 32768 40960 57344 28672 20480 53248 36864 45056 61440 14336 10240 26624 18432 51200 34816 43008 59392 30720 22528 55296 38912 47104 63488 7168 5120 13312 9216 25600 17408 50176 337...

result:

ok answer is 1

Test #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

score: 0
Accepted
time: 9ms
memory: 4640kb

input:

200000

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 12288 8192 24576 16384 49152 32768 98304 65536 81920 114688 57344 40960 106496 73728 90112 122880 28672 20480 53248 36864 102400 69632 86016 118784 61440 45056 110592 77824 94208 126976 14336 10240 26624 18432...

result:

ok answer is 1

Test #49:

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

input:

3073

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 1280 1792 896 640 1664 1152 1408 1920 448 320 832 576 1600 1088 1344 1856 960 704 1728 1216 1472 1984 224 160 416 288 800 544 1568 1056 1312 1824 928 672 1696 1184 1440 1952 480 352 864 608 1632 1120 1376 1888 992 736 1760 1248 1...

result:

ok answer is 1

Test #50:

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

input:

16383

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 5120 7168 3584 2560 6656 4608 5632 7680 1792 1280 3328 2304 6400 4352 5376 7424 3840 2816 6912 4864 5888 7936 896 640 1664 1152 3200 2176 6272 4224 5248 7296 3712 2688 6784 4736 5760 7808 1920 1408 3456 2432 6...

result:

ok answer is 1

Test #51:

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

input:

32767

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 384 256 768 512 1536 1024 3072 2048 6144 4096 12288 8192 10240 14336 7168 5120 13312 9216 11264 15360 3584 2560 6656 4608 12800 8704 10752 14848 7680 5632 13824 9728 11776 15872 1792 1280 3328 2304 6400 4352 12544 8448 10496 14592 7424 5376 13568 9472 115...

result:

ok answer is 1

Test #52:

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

input:

399

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 192 128 160 224 112 80 208 144 176 240 56 40 104 72 200 136 168 232 120 88 216 152 184 248 28 20 52 36 100 68 196 132 164 228 116 84 212 148 180 244 60 44 108 76 204 140 172 236 124 92 220 156 188 252 14 10 26 18 50 34 98 66 194 130 162 226 114 82 210 146 178 242...

result:

ok answer is 1

Test #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

output:

YES
1 3 2 6 4 12 8 24 16 48 32 96 64 80 112 56 40 104 72 88 120 28 20 52 36 100 68 84 116 60 44 108 76 92 124 14 10 26 18 50 34 98 66 82 114 58 42 106 74 90 122 30 22 54 38 102 70 86 118 62 46 110 78 94 126 7 5 13 9 25 17 49 33 97 65 81 113 57 41 105 73 89 121 29 21 53 37 101 69 85 117 61 45 109 77 ...

result:

ok answer is 1

Extra Test:

score: 0
Extra Test Passed