QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#304657#8004. Bit Componentucup-team1400#AC ✓104ms40204kbC++202.8kb2024-01-13 22:59:282024-01-13 22:59:28

詳細信息

Test #1:

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

input:

1

output:

YES
1

result:

ok answer is 1

Test #2:

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

input:

2

output:

NO

result:

ok answer is 0

Test #3:

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

input:

3

output:

YES
1 3 2

result:

ok answer is 1

Test #4:

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

input:

4

output:

NO

result:

ok answer is 0

Test #5:

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

input:

5

output:

NO

result:

ok answer is 0

Test #6:

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

input:

6

output:

NO

result:

ok answer is 0

Test #7:

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

input:

7

output:

YES
1 3 2 6 4 5 7

result:

ok answer is 1

Test #8:

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

input:

8

output:

NO

result:

ok answer is 0

Test #9:

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

input:

9

output:

NO

result:

ok answer is 0

Test #10:

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

input:

10

output:

NO

result:

ok answer is 0

Test #11:

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

input:

11

output:

NO

result:

ok answer is 0

Test #12:

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

input:

12

output:

NO

result:

ok answer is 0

Test #13:

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

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

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

input:

15

output:

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

result:

ok answer is 1

Test #16:

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

input:

16

output:

NO

result:

ok answer is 0

Test #17:

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

input:

17

output:

NO

result:

ok answer is 0

Test #18:

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

input:

23

output:

NO

result:

ok answer is 0

Test #19:

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

input:

24

output:

NO

result:

ok answer is 0

Test #20:

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

input:

25

output:

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

result:

ok answer is 1

Test #21:

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

input:

26

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 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: 3640kb

input:

27

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 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: 3716kb

input:

40

output:

NO

result:

ok answer is 0

Test #24:

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

input:

53

output:

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

result:

ok answer is 1

Test #25:

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

input:

93

output:

NO

result:

ok answer is 0

Test #26:

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

input:

105

output:

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

result:

ok answer is 1

Test #27:

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

input:

132

output:

NO

result:

ok answer is 0

Test #28:

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

input:

221

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #29:

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

input:

373

output:

NO

result:

ok answer is 0

Test #30:

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

input:

473

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #31:

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

input:

513

output:

NO

result:

ok answer is 0

Test #32:

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

input:

934

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #33:

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

input:

1356

output:

NO

result:

ok answer is 0

Test #34:

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

input:

1651

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #35:

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

input:

2263

output:

NO

result:

ok answer is 0

Test #36:

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

input:

3330

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #37:

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

input:

4375

output:

NO

result:

ok answer is 0

Test #38:

score: 0
Accepted
time: 4ms
memory: 4896kb

input:

7989

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #39:

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

input:

10925

output:

NO

result:

ok answer is 0

Test #40:

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

input:

14097

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #41:

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

input:

16893

output:

NO

result:

ok answer is 0

Test #42:

score: 0
Accepted
time: 4ms
memory: 8852kb

input:

28913

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #43:

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

input:

40092

output:

NO

result:

ok answer is 0

Test #44:

score: 0
Accepted
time: 24ms
memory: 12644kb

input:

54980

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #45:

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

input:

88104

output:

NO

result:

ok answer is 0

Test #46:

score: 0
Accepted
time: 50ms
memory: 21060kb

input:

106284

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #47:

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

input:

152797

output:

NO

result:

ok answer is 0

Test #48:

score: 0
Accepted
time: 104ms
memory: 40204kb

input:

200000

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #49:

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

input:

3073

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #50:

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

input:

16383

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #51:

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

input:

32767

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #52:

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

input:

399

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Test #53:

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

input:

5757

output:

NO

result:

ok answer is 0

Test #54:

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

input:

179

output:

NO

result:

ok answer is 0

Test #55:

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

input:

228

output:

YES
1 3 2 6 4 5 7 13 12 14 10 11 9 8 15 24 25 27 26 30 28 29 23 21 20 22 18 19 17 16 31 48 49 51 50 54 52 53 55 61 60 62 58 59 57 56 47 40 41 43 42 46 44 45 39 37 36 38 34 35 33 32 63 96 97 99 98 102 100 101 103 109 108 110 106 107 105 104 111 120 121 123 122 126 124 125 119 117 116 118 114 115 113 ...

result:

ok answer is 1

Extra Test:

score: 0
Extra Test Passed