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

【周六9:00】暑假作业

Not Claimed
Status
Done
Problem
19
Open Since
2024-7-20 0:00
Deadline
2024-8-25 23:59
Extension
24 hour(s)