Round decimals

AtCoder
IDabc226_a
Time2000ms
Memory256MB
Difficulty
You are given a real number $X$, which is representable using at most three decimal digits, with three decimal digits. Round $X$ to the nearest integer and print the result. ## Constraints * $0 \leq X < 100$ * $X$ is representable using at most three decimal digits. * $X$ has three decimal digits in input. ## Input Input is given from Standard Input in the following format: $X$ [samples]
Samples
Input #1
3.456
Output #1
3

The digit in the first decimal place of $3.456$ is $4$, so we should round it down to $3$.
Input #2
99.500
Output #2
100
Input #3
0.000
Output #3
0
API Response (JSON)
{
  "problem": {
    "name": "Round decimals",
    "description": {
      "content": "You are given a real number $X$, which is representable using at most three decimal digits, with three decimal digits.   Round $X$ to the nearest integer and print the result.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc226_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a real number $X$, which is representable using at most three decimal digits, with three decimal digits.  \nRound $X$ to the nearest integer and print the result.\n\n## Constraints\n\n*   $0 ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments