| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1308538 | Mahog | 홀-짝 수열 (IZhO11_oddeven) | Pypy 3 | 166 ms | 48848 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)
Compilation message (stdout)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
