#LQ032. 求阶乘的和【蓝桥杯】
求阶乘的和【蓝桥杯】
题目描述
求S=1!+2!+3!+....+n!。
输入格式
输入正整数n。
输出格式
输出S。
样例
3
9
提示
对于所有数据:1≤n≤20。
Statistics
Related
In following contests:
求S=1!+2!+3!+....+n!。
输入正整数n。
输出S。
3
9
对于所有数据:1≤n≤20。
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.