N, K = input().split()
print(int(N) - 1)
for i in range(1, int(N)):
print("A=((A+((A&(1<<%d))>>%d))-(A&(1<<%d)))" % (i, i, i))
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
26 ms |
3300 KB |
Accepted. |
2 |
Correct |
24 ms |
3308 KB |
Accepted. |
3 |
Correct |
25 ms |
3308 KB |
Accepted. |
4 |
Correct |
25 ms |
3300 KB |
Accepted. |
5 |
Correct |
24 ms |
3308 KB |
Accepted. |
6 |
Correct |
25 ms |
3300 KB |
Accepted. |
7 |
Correct |
24 ms |
3308 KB |
Accepted. |
8 |
Correct |
27 ms |
3428 KB |
Accepted. |
9 |
Correct |
24 ms |
3308 KB |
Accepted. |
10 |
Correct |
24 ms |
3308 KB |
Accepted. |
11 |
Correct |
24 ms |
3308 KB |
Accepted. |
12 |
Correct |
24 ms |
3300 KB |
Accepted. |
13 |
Correct |
30 ms |
3300 KB |
Accepted. |
14 |
Correct |
24 ms |
3300 KB |
Accepted. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
25 ms |
3308 KB |
Incorrect number of commands. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
24 ms |
3308 KB |
Accepted. |
2 |
Incorrect |
26 ms |
3308 KB |
Incorrect number of commands. |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
25 ms |
3308 KB |
Incorrect number of commands. |
2 |
Halted |
0 ms |
0 KB |
- |