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