-->
当前位置:首页 > 题库

PROGRAMMING:Calculate factorial sum

Luz5年前 (2021-05-10)题库406
For the given positive integer $$n $$, you need to calculate $$s = 1+ 2! + 3! + ... + N!$$。
###Input format:
Input to give a positive integer of no more than 10 $$n $$in one line.
###Output format:
Output the value of $$s $$on one line.
###Input example:
```in
three
```
###Output example:
```out
nine
```






answer:If there is no answer, please comment