提交时间:2025-12-26 15:15:01
运行 ID: 78002
N = int(input()) if N % 2 == 0: print((N / 2 - 1) * N) else: print((N - 1) / 2 * (N + 1))