#J3086. 阶乘之和
阶乘之和
题目描述
用高精度计算出 S = 1!+2!+3!+⋯+n!(n≤50)。
其中“!”表示阶乘,例如:5! = 5×4×3×2×1。
输入格式
一个正整数 n。输出格式
一个正整数 S,表示计算结果。39
用高精度计算出 S = 1!+2!+3!+⋯+n!(n≤50)。
其中“!”表示阶乘,例如:5! = 5×4×3×2×1。
39
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.