제출 #1308538

#제출 시각아이디문제언어결과실행 시간메모리
1308538Mahog홀-짝 수열 (IZhO11_oddeven)Pypy 3
0 / 100
166 ms48848 KiB
import math n = int(input()) temp = int(math.sqrt(n * 2)) - 1 if (temp + 1) * (temp + 2) // 2 < n: temp += 1 if (temp + 1) * (temp + 2) // 2 < n: temp += 1 print(temp + (n - temp - 1) * 2 + 1)

컴파일 시 표준 출력 (stdout) 메시지

Compiling 'oddeven.py'...

=======
  adding: __main__.pyc (deflated 28%)

=======
#Verdict Execution timeMemoryGrader output
Fetching results...