浮点数向零舍入

Luogu
IDLGB2016
Time1000ms
Memory128MB
DifficultyP1
顺序结构
输入一个双精度浮点数,将其向零舍入到整数。说明:向零舍入的含义是,正数向下舍入,负数向上舍入。 ## Input 一个双精度浮点数 $x$。 ## Output 一个整数,即向零舍入到整数的结果。 [samples] ## Note $-10^{15} \le x \le 10^{15}$。
Samples
Input #1
2.3
Output #1
2
API Response (JSON)
{
  "problem": {
    "name": "浮点数向零舍入",
    "description": {
      "content": "输入一个双精度浮点数,将其向零舍入到整数。说明:向零舍入的含义是,正数向下舍入,负数向上舍入。 ",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB2016"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "输入一个双精度浮点数,将其向零舍入到整数。说明:向零舍入的含义是,正数向下舍入,负数向上舍入。\n\n## Input\n\n一个双精度浮点数 $x$。\n\n## Output\n\n一个整数,即向零舍入到整数的结果。\n\n[samples]\n\n## Note\n\n$-10^{15} \\le x \\le 10^{15}$。...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments