Accepted
Code
t = int(input())
for _ in range(t):
n = int(input())
ans = 0
for i in range(1,n+1):
if(i%2):
ans += 1
print(ans)
Information
- Submit By
- Type
- Submission
- Problem
- P1041 Odd number
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-03-24 08:34:53
- Judged At
- 2024-03-24 08:34:53
- Judged By
- Score
- 100
- Total Time
- 112ms
- Peak Memory
- 2.879 MiB