Time Exceeded
Code
T = int(input())
for _ in range(T):
N = int(input())
ans = 0
for i in range(1, N//2+1):
ans += (N//i - 1)
print(ans)
Information
- Submit By
- Type
- Submission
- Problem
- P1206 D1. GCD equal Absolute Value (Easy Version)
- Contest
- Educational Round 1
- Language
- PyPy 3 (Python 3.9.18 PyPy 7.3.15)
- Submit At
- 2025-07-14 17:07:53
- Judged At
- 2025-07-14 17:07:53
- Judged By
- Score
- 0
- Total Time
- ≥1101ms
- Peak Memory
- ≥18.473 MiB