求出e的值
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.
【题目描述】
利用公式 $e=1+\frac{1}{1!}+\frac{1}{2!}+\frac{1}{3!}+ ... +\frac{1}{n!}$ ,求 的值,要求保留小数点后 位。
【输入】
输入只有一行,该行包含一个整数 (),表示计算 时累加到 。
【输出】
输出只有一行,该行包含计算出来的 的值,要求打印小数点后 位。
【输入样例】
10
【输出样例】
2.7182818011
【来源】
一本通在线评测
1219签到加作业
- Status
- Done
- Rule
- IOI
- Problem
- 7
- Start at
- 2025-12-19 10:00
- End at
- 2025-12-19 12:15
- Duration
- 2.3 hour(s)
- Host
- Partic.
- 44