| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 250532 | dvdg6566 | Popcount (COCI19_popcount) | Cpython 3 | 32 ms | 3436 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
A=[int(x) for x in input().split(' ')]
N=A[0]
M=A[1]
X=[]
ml=0
for x in range(M):
A=0
B=0
for i in range(N):
if((2**ml)&i): A+=2**i
else:B+=2**i
X.append("A=(((A&"+str(A)+")>>"+str(2**ml)+")+(A&"+str(B)+'))')
ml+=1
if(2**ml>=N):break
print(len(X))
for i in X:
print(i)
| # | 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... | ||||
