| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 216 | 92 | 66 | 42.308% |
You are given a regular polygon with $n$ vertices. You should find the number of isosceles triangles with vertices that are the vertices of the polygon.
The only line of input contains one integer $n$ --- the number of vertices of a regular polygon (3ドル \le n \le 10^9$).
The output line should contain a single integer --- the number of isosceles triangles with vertices that are the vertices of the polygon.
3
1
5
10
An isosceles triangle is a triangle that has at least two equal sides.