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)+"))")
# |
결과 |
실행 시간 |
메모리 |
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. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
25 ms |
3308 KB |
Wrong answer. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
24 ms |
3308 KB |
Wrong command format. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
24 ms |
3308 KB |
Wrong answer. |
2 |
Halted |
0 ms |
0 KB |
- |