QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#874898 | #8004. Bit Component | kangkunma | WA | 11ms | 9088kb | Python3 | 151b | 2025-01-28 19:27:34 | 2025-01-28 19:27:35 |
Judging History
answer
n=int(input());A=[0];t=1
if bin(n).count('0')!=1:print('NO');quit()
print('YES')
while n:A=[t+i for i in A][::-1]+A;t*=2;n//=2
A.pop(-1)
print(*A)
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 11ms
memory: 8960kb
input:
1
output:
YES 1
result:
ok answer is 1
Test #2:
score: 0
Accepted
time: 9ms
memory: 9088kb
input:
2
output:
NO
result:
ok answer is 0
Test #3:
score: 0
Accepted
time: 9ms
memory: 9088kb
input:
3
output:
YES 2 3 1
result:
ok answer is 1
Test #4:
score: 0
Accepted
time: 8ms
memory: 8960kb
input:
4
output:
NO
result:
ok answer is 0
Test #5:
score: 0
Accepted
time: 10ms
memory: 8960kb
input:
5
output:
NO
result:
ok answer is 0
Test #6:
score: 0
Accepted
time: 10ms
memory: 8960kb
input:
6
output:
NO
result:
ok answer is 0
Test #7:
score: 0
Accepted
time: 10ms
memory: 9088kb
input:
7
output:
YES 4 5 7 6 2 3 1
result:
ok answer is 1
Test #8:
score: 0
Accepted
time: 10ms
memory: 8960kb
input:
8
output:
NO
result:
ok answer is 0
Test #9:
score: 0
Accepted
time: 9ms
memory: 8960kb
input:
9
output:
NO
result:
ok answer is 0
Test #10:
score: 0
Accepted
time: 9ms
memory: 9088kb
input:
10
output:
NO
result:
ok answer is 0
Test #11:
score: 0
Accepted
time: 9ms
memory: 8960kb
input:
11
output:
NO
result:
ok answer is 0
Test #12:
score: 0
Accepted
time: 8ms
memory: 9088kb
input:
12
output:
NO
result:
ok answer is 0
Test #13:
score: -100
Wrong Answer
time: 11ms
memory: 8960kb
input:
13
output:
NO
result:
wrong answer Jury has the answer, participant doesn't