Submission #1109826

# Submission time Handle Problem Language Result Execution time Memory
1109826 2024-11-07T17:30:36 Z Kirill22 Odd-even (IZhO11_oddeven) PyPy 3
0 / 100
38 ms 18364 KB
import math
n = int(input())
print(2 * n - math.floor((1 + math.sqrt(8 * n - 7)) / 2))
# Verdict Execution time Memory Grader output
1 Correct 35 ms 18196 KB Output is correct
2 Correct 36 ms 18216 KB Output is correct
3 Correct 37 ms 18236 KB Output is correct
4 Correct 38 ms 18224 KB Output is correct
5 Correct 36 ms 18224 KB Output is correct
6 Correct 36 ms 18220 KB Output is correct
7 Correct 34 ms 18224 KB Output is correct
8 Correct 37 ms 18364 KB Output is correct
9 Correct 37 ms 18252 KB Output is correct
10 Correct 36 ms 18216 KB Output is correct
11 Correct 36 ms 18224 KB Output is correct
12 Correct 36 ms 18216 KB Output is correct
13 Correct 32 ms 18176 KB Output is correct
14 Incorrect 33 ms 18204 KB Output isn't correct
15 Halted 0 ms 0 KB -