#P1058. 【例4.12】求阶乘和

【例4.12】求阶乘和

题目描述

求 S=1!+2!+3!+....+n!

输入格式

输入正整数n。

输出格式

输出s。

输入样例

3

输出样例

9

题目来源:信息技术学考Python一本通(py.ssoier.cn)