QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#874898#8004. Bit ComponentkangkunmaWA 11ms9088kbPython3151b2025-01-28 19:27:342025-01-28 19:27:35

Judging History

This is the latest submission verdict.

  • [2025-01-28 19:27:35]
  • Judged
  • Verdict: WA
  • Time: 11ms
  • Memory: 9088kb
  • [2025-01-28 19:27:34]
  • Submitted

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)

詳細信息

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