RYIP在线题库
首 页   >   习题练习   >   提交
Problem1378--高精度阶乘之和

1378: 高精度阶乘之和

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

【 Description 】

用高精度计算出S=1!+2!+3!+…+n! (n≤50) 
其中“!”表示阶乘,例如:5!=5×4×3×2×1。

【 Input 】

一个正整数N

【 Output 】

一个正整数S,表示计算结果

【 Sample Input 】

3

【 Sample Output 】

9

【 Source/Category 】