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 time |
Memory |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
29 ms |
3300 KB |
Output is correct |
3 |
Correct |
57 ms |
3300 KB |
Output is correct |
4 |
Execution timed out |
1067 ms |
3300 KB |
Time limit exceeded |
5 |
Execution timed out |
1084 ms |
3300 KB |
Time limit exceeded |
6 |
Execution timed out |
1081 ms |
3272 KB |
Time limit exceeded |
7 |
Execution timed out |
1081 ms |
3300 KB |
Time limit exceeded |
8 |
Execution timed out |
1081 ms |
3300 KB |
Time limit exceeded |
9 |
Execution timed out |
1082 ms |
3304 KB |
Time limit exceeded |
10 |
Execution timed out |
1072 ms |
3300 KB |
Time limit exceeded |