提交时间:2025-12-26 15:14:12

运行 ID: 77992

N = int(input()) if N % 2 == 0: print(N / 2 * N) else: print((N - 1) / 2 * (N + 1))