CC. 【例14.1】输出浮点数
【例14.1】输出浮点数
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”保留5位小数,“%e”和“%g”的形式输出这个整数,每次在单独一行上输出。
输入格式
一个双精度浮点数。
输出格式
第一行是按“%f”输出的双精度浮点数;
第二行是按“%f”保留5位小数输出的双精度浮点数;
第三行是按“%e”输出的双精度浮点数;
第四行是按“%g”输出的双精度浮点数。
样例
12.345678912.345679
12.34568
1.234568e+001
12.3457
666
- Status
- Done
- Rule
- XCPC
- Problem
- 88
- Start at
- 2026-6-14 17:30
- End at
- 1970-1-1 8:00
- Duration
- -494841.5 hour(s)
- Host
- Partic.
- 0