Submission #517314

# Submission time Handle Problem Language Result Execution time Memory
517314 2022-01-23T03:14:09 Z KoD Popcount (COCI19_popcount) Python 3
0 / 110
15 ms 2776 KB
from audioop import reverse


n, m = map(int, input().split())
k = 1
while k < n:
    s = ''
    while len(s) < n:
        s += '1' * k
        s += '0' * k
    b = int((s[:n])[::-1], 2)
    print('A=((A&{})+((A>>{})&{}))'.format(b, k, b))
    k *= 2
# Verdict Execution time Memory Grader output
1 Incorrect 15 ms 2764 KB Wrong output format.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 2776 KB Wrong output format.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 2772 KB Wrong output format.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 13 ms 2764 KB Wrong output format.
2 Halted 0 ms 0 KB -