QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#874898#8004. Bit ComponentkangkunmaWA 11ms9088kbPython3151b2025-01-28 19:27:342025-01-28 19:27:35

Judging History

你现在查看的是最新测评结果

  • [2025-01-28 19:27:35]
  • 评测
  • 测评结果:WA
  • 用时:11ms
  • 内存:9088kb
  • [2025-01-28 19:27:34]
  • 提交

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