Submission #165186

#TimeUsernameProblemLanguageResultExecution timeMemory
165186boolodifjenulaUzastopni (COCI17_uzastopni)Cpython 3
24 / 80
1084 ms3304 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
    #print(z)
    if t:print(i,t)

#Verdict Execution timeMemoryGrader output
Fetching results...