답안 #319150

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
319150 2020-11-04T09:15:12 Z sofapuden 홀-짝 수열 (IZhO11_oddeven) Python 3
0 / 100
2000 ms 2924 KB
n = int(input())

x = 1
y = 1
while(y < n):
	x+=1
	y+=x
print(2*n-x)
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 2816 KB Output is correct
2 Correct 17 ms 2924 KB Output is correct
3 Correct 16 ms 2796 KB Output is correct
4 Correct 16 ms 2828 KB Output is correct
5 Correct 16 ms 2796 KB Output is correct
6 Correct 24 ms 2796 KB Output is correct
7 Correct 823 ms 2852 KB Output is correct
8 Execution timed out 2085 ms 2796 KB Time limit exceeded
9 Halted 0 ms 0 KB -