#t248. 阶乘和(sum)
阶乘和(sum)
Sum of Factorials
Problem Background
Special for beginners, ^_^
Problem Description
Given a positive integer , let . Here ! denotes factorial, i.e.
$N! = 1 \times 2 \times 3 \times \dots \times (N-1) \times N$,
for example: .
Please write a program that, given a positive integer , outputs the value of .
Input Format
One integer .
Output Format
Output the value of .
Sample Input
4
Sample Output
33
Constraints
1s, 1024KiB for each test case.