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 time |
Memory |
Grader output |
1 |
Correct |
58 ms |
3292 KB |
Output is correct |
2 |
Correct |
29 ms |
3300 KB |
Output is correct |
3 |
Correct |
56 ms |
3300 KB |
Output is correct |
4 |
Execution timed out |
1055 ms |
3300 KB |
Time limit exceeded |
5 |
Execution timed out |
1059 ms |
3300 KB |
Time limit exceeded |
6 |
Execution timed out |
1073 ms |
3300 KB |
Time limit exceeded |
7 |
Execution timed out |
1082 ms |
3300 KB |
Time limit exceeded |
8 |
Execution timed out |
1075 ms |
3296 KB |
Time limit exceeded |
9 |
Execution timed out |
1076 ms |
3300 KB |
Time limit exceeded |
10 |
Execution timed out |
1075 ms |
3300 KB |
Time limit exceeded |