Run ID:86826

提交时间:2024-07-28 12:15:28

T = int(input()) for _ in range(T): n = int(input()) a = n * (n + 1) // 2 a_s = a % 10000 print(a_s)