Problem J: 计算∑n!

Problem J: 计算∑n!

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 707  Solved: 548
[Submit] [Status] [Web Board] [Creator:]

Description

输入正整数n(0<n<10),计算∑n!=1!+2!+3!+...+n! 
要求:由于阶乘的结果比较大,按浮点数格式输出计算结果,有效数值保留一位小数点。 

Sample Input Copy

1
5

Sample Output Copy

1.0
153.0