Submission #922490

#TimeUsernameProblemLanguageResultExecution timeMemory
922490thunoproOdd-even (IZhO11_oddeven)Pypy 2
100 / 100
25 ms19712 KiB
n=int(input()) l=1; r=10**51; best=100 while l<=r: mid=(l+r)//2 if mid*(mid+1)//2>=n: best=mid r=mid-1 else: l=mid+1 print(2*n-best)
#Verdict Execution timeMemoryGrader output
Fetching results...