# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
165190 | boolodifjenula | Uzastopni (COCI17_uzastopni) | Cpython 3 | 1090 ms | 3372 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 |
---|---|---|---|---|
Fetching results... |