Time Exceeded
Code
T=int(input())
for i in range(T):
N=int(input())
count=0
a=int(N//2)
for i in range(1,a+1):
for j in range(a+1,N):
if (i+j==N):
count=count+1
print(count)
Information
- Submit By
- Type
- Submission
- Problem
- P1073 Pair Sum
- Contest
- Bangladesh 2.0
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-08-16 16:34:53
- Judged At
- 2024-10-03 13:26:40
- Judged By
- Score
- 40
- Total Time
- ≥1095ms
- Peak Memory
- ≥3.117 MiB