Maximum Volume

AtCoder
IDabc159_c
Time2000ms
Memory256MB
Difficulty
Given is a positive integer $L$. Find the maximum possible volume of a rectangular cuboid whose sum of the dimensions (not necessarily integers) is $L$. ## Constraints * $1 ≤ L ≤ 1000$ * $L$ is an integer. ## Input Input is given from Standard Input in the following format: $L$ [samples]
Samples
Input #1
3
Output #1
1.000000000000

For example, a rectangular cuboid whose dimensions are $0.8$, $1$, and $1.2$ has a volume of $0.96$.
On the other hand, if the dimensions are $1$, $1$, and $1$, the volume of the rectangular cuboid is $1$, which is greater.
Input #2
999
Output #2
36926037.000000000000
API Response (JSON)
{
  "problem": {
    "name": "Maximum Volume",
    "description": {
      "content": "Given is a positive integer $L$. Find the maximum possible volume of a rectangular cuboid whose sum of the dimensions (not necessarily integers) is $L$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc159_c"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given is a positive integer $L$. Find the maximum possible volume of a rectangular cuboid whose sum of the dimensions (not necessarily integers) is $L$.\n\n## Constraints\n\n*   $1 ≤ L ≤ 1000$\n*   $L$ is ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments