Sum of Interior Angles

AtCoder
IDm_solutions2019_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
3
Output #1
180

The sum of the interior angles of a regular triangle is $180$ degrees.
Input #2
100
Output #2
17640
API Response (JSON)
{
  "problem": {
    "name": "Sum of Interior Angles",
    "description": {
      "content": "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.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "m_solutions2019_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given an integer $N$ not less than $3$, find the sum of the interior angles of a regular polygon with $N$ sides.\nPrint the answer in degrees, but do not print units.\n\n## Constraints\n\n*   $3 \\leq N \\le...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments