Submission #165189

# Submission time Handle Problem Language Result Execution time Memory
165189 2019-11-25T17:40:49 Z boolodifjenula Uzastopni (COCI17_uzastopni) Python 3
0 / 80
1000 ms 3400 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 z<n:
          break
    if t:print(i,t)

# Verdict Execution time Memory Grader output
1 Incorrect 24 ms 3300 KB Output isn't correct
2 Incorrect 24 ms 3300 KB Output isn't correct
3 Incorrect 25 ms 3300 KB Output isn't correct
4 Incorrect 85 ms 3300 KB Output isn't correct
5 Incorrect 142 ms 3400 KB Output isn't correct
6 Execution timed out 1081 ms 3300 KB Time limit exceeded
7 Execution timed out 1087 ms 3300 KB Time limit exceeded
8 Execution timed out 1086 ms 3300 KB Time limit exceeded
9 Execution timed out 1088 ms 3300 KB Time limit exceeded
10 Execution timed out 1069 ms 3300 KB Time limit exceeded