QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#635348#9249. Elimination Series Once Moreshiqiaqiaya#WA 15ms10864kbPython3186b2024-10-12 19:33:272024-10-12 19:33:27

Judging History

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

  • [2024-10-12 19:33:27]
  • 评测
  • 测评结果:WA
  • 用时:15ms
  • 内存:10864kb
  • [2024-10-12 19:33:27]
  • 提交

answer

import math
n, k = map(int, input().split())
a = list(map(int, input().split()))
ans = [int(math.log2(x)) for x in a]
for i in range(int(math.pow(2, n))):
    print(ans[i], end=' ')

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 15ms
memory: 10832kb

input:

2 1
1 2 3 4

output:

0 1 1 2 

result:

ok 4 number(s): "0 1 1 2"

Test #2:

score: 0
Accepted
time: 15ms
memory: 10692kb

input:

3 5
2 4 7 5 3 8 6 1

output:

1 2 2 2 1 3 2 0 

result:

ok 8 numbers

Test #3:

score: -100
Wrong Answer
time: 15ms
memory: 10864kb

input:

3 0
1 2 7 4 5 8 3 6

output:

0 1 2 2 2 3 1 2 

result:

wrong answer 4th numbers differ - expected: '0', found: '2'