输出保留12位小数的浮点数
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.
Description
读入一个双精度浮点数,保留12位小数,输出这个浮点数。
Format
Input
只有一行,一个双精度浮点数。
Output
也只有一行,保留12位小数的浮点数。
Samples
3.1415926535798932
3.141592653580
Limitation
1s, 64KiB for each test case.
python参考代码
# python的浮点数类型--float
n = input()
n = float(n)
print("%.12f" % (n))
周六午13:30C++(袁0906)
- Status
- Done
- Problem
- 8
- Open Since
- 2025-9-6 0:00
- Deadline
- 2025-9-14 23:59
- Extension
- 24 hour(s)