답안 #165187

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
165187 2019-11-25T17:14:00 Z boolodifjenula Uzastopni (COCI17_uzastopni) Python 3
24 / 80
1000 ms 3300 KB
n=int(input())
k=n//2+2
i=0
while i!=n//2:
    i+=1
    z=0
    t=0
    for j in range(i,k):
        z+=j
        if z==n:
            t=j
            break
    if t:print(i,t)

# 결과 실행 시간 메모리 Grader output
1 Correct 58 ms 3292 KB Output is correct
2 Correct 29 ms 3300 KB Output is correct
3 Correct 56 ms 3300 KB Output is correct
4 Execution timed out 1055 ms 3300 KB Time limit exceeded
5 Execution timed out 1059 ms 3300 KB Time limit exceeded
6 Execution timed out 1073 ms 3300 KB Time limit exceeded
7 Execution timed out 1082 ms 3300 KB Time limit exceeded
8 Execution timed out 1075 ms 3296 KB Time limit exceeded
9 Execution timed out 1076 ms 3300 KB Time limit exceeded
10 Execution timed out 1075 ms 3300 KB Time limit exceeded