This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
N, K = input().split()
p2 = 1
x = 0
for i in range(0, int(N) // 4 * 4, 4):
print("A=(((((A&%d)>>%d)+((A&%d)>>%d))+(((A&%d)>>%d)+((A&%d)>>%d)))+A)" % (p2, x, p2 * 2, x + 1, p2 * 4, x + 2, p2 * 8, x + 3))
p2 *= 16
x += 4
for i in range(int(N) // 4 * 4, int(N)):
print("A=(((x&%d)>>%d)+A)" % (p2, x))
p2 *= 2
x += 1
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |