输出浮点数

Luogu
IDLGB2024
Time1000ms
Memory128MB
DifficultyP1
顺序结构
读入一个双精度浮点数,分别按输出格式 `%f` ,`%f` 保留 $5$ 位小数,`%e` 和 `%g` 的形式输出这个数,每次在单独一行上输出。 ## Input 一个双精度浮点数。 ## Output 第一行是按 `%f` 输出的双精度浮点数; 第二行是按 `%f` 保留 $5$ 位小数输出的双精度浮点数; 第三行是按 `%e` 输出的双精度浮点数; 第四行是按 `%g` 输出的双精度浮点数。 [samples]
Samples
Input #1
12.3456789
Output #1
12.345679
12.34568
1.234568e+01
12.3457
API Response (JSON)
{
  "problem": {
    "name": "输出浮点数",
    "description": {
      "content": "读入一个双精度浮点数,分别按输出格式 `%f` ,`%f` 保留 $5$ 位小数,`%e` 和 `%g` 的形式输出这个数,每次在单独一行上输出。",
      "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": "LGB2024"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "读入一个双精度浮点数,分别按输出格式 `%f` ,`%f` 保留 $5$ 位小数,`%e` 和 `%g` 的形式输出这个数,每次在单独一行上输出。\n\n## Input\n\n一个双精度浮点数。\n\n## Output\n\n第一行是按 `%f` 输出的双精度浮点数;\n\n第二行是按 `%f` 保留 $5$ 位小数输出的双精度浮点数;\n\n第三行是按 `%e` 输出的双精度浮点数;\n\n第四行是按 `%g` 输出的...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments