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)
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
24 ms |
3300 KB |
Output isn't correct |
2 |
Incorrect |
24 ms |
3300 KB |
Output isn't correct |
3 |
Incorrect |
25 ms |
3300 KB |
Output isn't correct |
4 |
Incorrect |
85 ms |
3300 KB |
Output isn't correct |
5 |
Incorrect |
142 ms |
3400 KB |
Output isn't correct |
6 |
Execution timed out |
1081 ms |
3300 KB |
Time limit exceeded |
7 |
Execution timed out |
1087 ms |
3300 KB |
Time limit exceeded |
8 |
Execution timed out |
1086 ms |
3300 KB |
Time limit exceeded |
9 |
Execution timed out |
1088 ms |
3300 KB |
Time limit exceeded |
10 |
Execution timed out |
1069 ms |
3300 KB |
Time limit exceeded |