Submission #497803

#TimeUsernameProblemLanguageResultExecution timeMemory
497803inksamuraiSob (COCI19_sob)Pypy 3
110 / 110
366 ms34488 KiB
n,m=map(int,input().split()) while n>0: i=n-1 j=0 while j<n: if (i&(j+m))==i: break j=j+1 for _ in range(j+1): print(n-j+_-1,m+_) n=n-j-1 m=m+j+1
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...