Submission #165187

#TimeUsernameProblemLanguageResultExecution timeMemory
165187boolodifjenulaUzastopni (COCI17_uzastopni)Cpython 3
24 / 80
1082 ms3300 KiB
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)

#Verdict Execution timeMemoryGrader output
Fetching results...