import math
n,k=map(int,input().split(" "))
ans=[]
mul=1
while (n!=1):
temp=0
for i in range(0,n,5):
temp|=(1<<i)
ans+=["A=(((((A&"+str(temp)+")+((A>>"+str(1*mul)+")&"+str(temp)+"))+((A>>"+str(2*mul)+")&"+str(temp)+"))+((A>>"+str(3*mul)+")&"+str(temp)+"))+((A>>"+str(4*mul)+")&"+str(temp)+"))"]
n=math.ceil(n/5)
mul*=5
print(len(ans))
for i in range(len(ans)):
print(ans[i])
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
25 ms |
3308 KB |
Wrong command format. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
25 ms |
3384 KB |
Wrong answer. |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
3300 KB |
Accepted. |
2 |
Incorrect |
25 ms |
3308 KB |
Wrong answer. |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
25 ms |
3308 KB |
Wrong answer. |
2 |
Halted |
0 ms |
0 KB |
- |