QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#304659#8004. Bit Componentucup-team1984#AC ✓11ms12560kbC++206.3kb2024-01-13 23:02:052024-01-13 23:02:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

YES
1 

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
1 3 2 

result:

ok answer is 1

Test #4:

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

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
1 3 2 6 4 5 7 

result:

ok answer is 1

Test #8:

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

input:

8

output:

NO

result:

ok answer is 0

Test #9:

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

input:

9

output:

NO

result:

ok answer is 0

Test #10:

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

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

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: 2ms
memory: 10928kb

input:

14

output:

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

result:

ok answer is 1

Test #15:

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

input:

15

output:

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

result:

ok answer is 1

Test #16:

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

input:

16

output:

NO

result:

ok answer is 0

Test #17:

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

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

input:

23

output:

NO

result:

ok answer is 0

Test #19:

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

input:

24

output:

NO

result:

ok answer is 0

Test #20:

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

input:

25

output:

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

result:

ok answer is 1

Test #21:

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

input:

26

output:

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

result:

ok answer is 1

Test #22:

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

input:

27

output:

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

result:

ok answer is 1

Test #23:

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

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

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 49 33 51 35 50 34 38 52 36 53 37 39 41 43 42 46 44 40 45 47 48 32 

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

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 97 65 99 67 98 66 102 70 100 68 101 69 103 71 105 73 75 74 78 76 104 72 77 79 81 83 82 86 84 85 87 89 91 90 94 92 88...

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

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 #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

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 #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

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 #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

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 #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

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 #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

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

input:

7989

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 #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

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 #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

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

input:

28913

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 #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

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

input:

54980

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 #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

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

input:

106284

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 #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

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

input:

200000

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 #49:

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

input:

3073

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 #50:

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

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: 3ms
memory: 11748kb

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

input:

399

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 #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

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

Extra Test:

score: 0
Extra Test Passed