Accepted
Code
T=int(input())
for i in range(T):
n = int(input())
count = n // 2 if n % 2 == 0 else (n - 1) // 2
if (n%2==0):
print(count-1)
else:
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:52:24
- Judged At
- 2024-11-11 03:13:40
- Judged By
- Score
- 100
- Total Time
- 525ms
- Peak Memory
- 3.902 MiB