Dodecagon

AtCoder
IDabc134_a
Time2000ms
Memory256MB
Difficulty
It is known that the area of a regular dodecagon inscribed in a circle of radius $a$ is $3a^2$. Given an integer $r$, find the area of a regular dodecagon inscribed in a circle of radius $r$. ## Constraints * $1 \leq r \leq 100$ * $r$ is an integer. ## Input Input is given from Standard Input in the following format: $r$ [samples]
Samples
Input #1
4
Output #1
48

The area of the regular dodecagon is $3 \times 4^2 = 48$.
Input #2
15
Output #2
675
Input #3
80
Output #3
19200
API Response (JSON)
{
  "problem": {
    "name": "Dodecagon",
    "description": {
      "content": "It is known that the area of a regular dodecagon inscribed in a circle of radius $a$ is $3a^2$. Given an integer $r$, find the area of a regular dodecagon inscribed in a circle of radius $r$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc134_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "It is known that the area of a regular dodecagon inscribed in a circle of radius $a$ is $3a^2$.\nGiven an integer $r$, find the area of a regular dodecagon inscribed in a circle of radius $r$.\n\n## Cons...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments