답안 #337855

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
337855 2020-12-22T03:39:15 Z talant117408 홀-짝 수열 (IZhO11_oddeven) Python 2
0 / 100
15 ms 3072 KB
import math
n = input()
n = float(n)
print(int(n*2-float(math.floor(math.sqrt(float(2*n))+0.5))))
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 3072 KB Output is correct
2 Correct 12 ms 3052 KB Output is correct
3 Correct 11 ms 3052 KB Output is correct
4 Correct 11 ms 3052 KB Output is correct
5 Correct 12 ms 3052 KB Output is correct
6 Correct 12 ms 3052 KB Output is correct
7 Correct 11 ms 3052 KB Output is correct
8 Correct 11 ms 3052 KB Output is correct
9 Correct 12 ms 3052 KB Output is correct
10 Correct 11 ms 3052 KB Output is correct
11 Incorrect 15 ms 3052 KB Output isn't correct
12 Halted 0 ms 0 KB -