A - Sum of Interior Angles
Editorial
/
Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
3 以上の整数 N が与えられます。 正 N 角形の内角の和を求めてください。
ただし、度数法を用いて、単位は出力しないでください。
制約
- 3 \leq N \leq 100
入力
入力は以下の形式で標準入力から与えられる。
N
出力
正 N 角形の内角の和を表す整数を出力せよ。
入力例 1
3
出力例 1
180
正三角形の内角の和は 180 度です。
入力例 2
100
出力例 2
17640
Score : 100 points
Problem Statement
Given an integer N not less than 3, find the sum of the interior angles of a regular polygon with N sides.
Print the answer in degrees, but do not print units.
Constraints
- 3 \leq N \leq 100
Input
Input is given from Standard Input in the following format:
N
Output
Print an integer representing the sum of the interior angles of a regular polygon with N sides.
Sample Input 1
3
Sample Output 1
180
The sum of the interior angles of a regular triangle is 180 degrees.
Sample Input 2
100
Sample Output 2
17640