A. 2025mzwc直线上的线段

    Type: Default 1000ms 256MiB

2025mzwc直线上的线段

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

一条直线上有 nn 个点,求这 nn个点一共能组成多少线段。

输入格式

输入一个正整数 nn

输出格式

输出这 nn 能组成多少线段。

样例

输入1

10

输出

45

输入2

3

输出

3

说明/提示

1n1091 \le n \le 10^9

蒙自市2025年冬令营结营测试

Not Attended
Status
Done
Rule
IOI
Problem
6
Start at
2025-2-20 14:30
End at
2025-2-20 16:30
Duration
2 hour(s)
Host
Partic.
66