#P2789. 直线交点数

直线交点数

Description

Assume there are NN lines in the plane, and no three lines are concurrent. How many distinct possible numbers of intersection points can these lines have?

Input Format

One line with an integer NN, the number of lines.

Output Format

One line with an integer, the total number of possible values.

4
5

Hint

For all testdata, 1N251 \le N \le 25.

Translated by ChatGPT 5