답안 #885997

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
885997 2023-12-11T10:22:36 Z karimov 홀-짝 수열 (IZhO11_oddeven) PyPy 3
0 / 100
32 ms 18328 KB
import math
n = float(input())
x = math.ceil((math.ceil(math.sqrt(8 * n + 1)) - 1) / 2)
print(int(2*n-x))
# 결과 실행 시간 메모리 Grader output
1 Correct 28 ms 18228 KB Output is correct
2 Correct 27 ms 18228 KB Output is correct
3 Correct 28 ms 18236 KB Output is correct
4 Correct 29 ms 18180 KB Output is correct
5 Correct 32 ms 18296 KB Output is correct
6 Correct 28 ms 18328 KB Output is correct
7 Correct 27 ms 18228 KB Output is correct
8 Correct 27 ms 18236 KB Output is correct
9 Correct 30 ms 18200 KB Output is correct
10 Correct 27 ms 18236 KB Output is correct
11 Incorrect 28 ms 18192 KB Output isn't correct
12 Halted 0 ms 0 KB -