QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#635348 | #9249. Elimination Series Once More | shiqiaqiaya# | WA | 15ms | 10864kb | Python3 | 186b | 2024-10-12 19:33:27 | 2024-10-12 19:33:27 |
Judging History
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'