제출 #676513

#제출 시각아이디문제언어결과실행 시간메모리
676513QwertyPi홀-짝 수열 (IZhO11_oddeven)Cpython 3
0 / 100
2063 ms2836 KiB
from math import sqrt n = int(input()) x = int(sqrt(n * 2)) while x * (x - 1) // 2 >= n: x -= 1 while x * (x + 1) / 2 < n: x += 1 print(n * 2 - x)
#Verdict Execution timeMemoryGrader output
Fetching results...