Submission #222582

# Submission time Handle Problem Language Result Execution time Memory
222582 2020-04-13T11:12:57 Z errorgorn Popcount (COCI19_popcount) Python 3
15 / 110
36 ms 3328 KB
n,k=map(int,input().split(" "))

print(k)

for i in range(1,k+1):
    print("A=((A+((A>>"+str(i)+")&1))-(A&"+str(2**i)+"))")
# Verdict Execution time Memory Grader output
1 Correct 24 ms 3308 KB Accepted.
2 Correct 24 ms 3308 KB Accepted.
3 Correct 36 ms 3300 KB Accepted.
4 Correct 24 ms 3308 KB Accepted.
5 Correct 25 ms 3308 KB Accepted.
6 Correct 32 ms 3300 KB Accepted.
7 Correct 32 ms 3308 KB Accepted.
8 Correct 24 ms 3300 KB Accepted.
9 Correct 25 ms 3308 KB Accepted.
10 Correct 26 ms 3308 KB Accepted.
11 Correct 26 ms 3308 KB Accepted.
12 Correct 26 ms 3308 KB Accepted.
13 Correct 27 ms 3284 KB Accepted.
14 Correct 25 ms 3328 KB Accepted.
# Verdict Execution time Memory Grader output
1 Incorrect 25 ms 3308 KB Wrong answer.
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 3308 KB Wrong command format.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 3308 KB Wrong answer.
2 Halted 0 ms 0 KB -