Submission #165190

#TimeUsernameProblemLanguageResultExecution timeMemory
165190boolodifjenulaUzastopni (COCI17_uzastopni)Cpython 3
40 / 80
1090 ms3372 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 z>n:
          break
    if t:print(i,t)

#Verdict Execution timeMemoryGrader output
Fetching results...