输出浮点数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
读入一个双精度浮点数,分别按输出格式 %f
,%f
保留 位小数,%e
和 %g
的形式输出这个整数,每次在单独一行上输出。
输入格式
一个双精度浮点数。
输出格式
第一行是按 %f
输出的双精度浮点数;
第二行是按 %f
保留 位小数输出的双精度浮点数;
第三行是按 %e
输出的双精度浮点数;
第四行是按 %g
输出的双精度浮点数。
12.3456789
12.345679
12.34568
1.234568e+001
12.3457
模拟[NOIP2013 普及组]基础赛
- Status
- Done
- Rule
- Ledo
- Problem
- 16
- Start at
- 2023-1-19 14:30
- End at
- 2023-1-19 16:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 2