Problem4487--多边形的内角和

4487: 多边形的内角和

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

一个 lns="http://www.w3.org/1998/Math/MathML">n 条边的多边形,其内角和公式为 lns="http://www.w3.org/1998/Math/MathML">180×(n2)

请写一个程序,当程序运行后,用户将提供一个整数 lns="http://www.w3.org/1998/Math/MathML">n,请计算并输出 lns="http://www.w3.org/1998/Math/MathML">n 边形对应的内角和。

数据范围

3≤n≤100

Input

  • 单个整数:表示 lns="http://www.w3.org/1998/Math/MathML">n

Output

  • 单个整数:表示 lns="http://www.w3.org/1998/Math/MathML">n 边形的内角和。

Sample Input Copy

3

Sample Output Copy

180

Source/Category