Submission #882217

#TimeUsernameProblemLanguageResultExecution timeMemory
882217Mr_HusanboyOdd-even (IZhO11_oddeven)Pypy 3
0 / 100
35 ms18372 KiB
n = int(input()) l = 1 r = 10**51 while l <= r: m = (l + r) // 2 if((m + 1) * m / 2 >= n): r = m - 1 else: l = m + 1 r += 1 print(2 * n - r)
#Verdict Execution timeMemoryGrader output
Fetching results...