#F. 【例28.2】 求出e的值

    Type: RemoteJudge 1000ms 128MiB

【例28.2】 求出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+11!+12!+13!+...+1n!e=1+\frac{1}{1!}+\frac{1}{2!}+\frac{1}{3!}+...+\frac{1}{n!}, 求 ee

输入格式

输入只有一行,该行包含一个整数nn(2n152≤n≤15)。

输出格式

输出只有一行,该行包含计算出来的ee的值,要求打印小数点后 1010 位。

样例

10
2.7182818011

2024022204-day4

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
9
Start at
2024-2-22 17:00
End at
2024-2-22 18:30
Duration
1.5 hour(s)
Host
Partic.
4