| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1308547 | Mahog | 홀-짝 수열 (IZhO11_oddeven) | Pypy 3 | 181 ms | 48824 KiB |
import math
n = int(input())
temp = int(math.isqrt(n * 2)) - 2
if (temp + 1) * (temp + 2) // 2 < n:
temp += 1
if (temp + 1) * (temp + 2) // 2 < n:
temp += 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) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
