E022


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 512M

Problem type

Cho số nguyên \(n\).

Yêu cầu: Tính \(S=1+1*2 +1*2*3+⋯+1*2*3*…*n.\)

Input:

  • Một dòng chứa số nguyên \(n (1≤n≤12).\)

Output:

  • Ghi một số nguyên là số \(S\) tìm được.

Sample Input

4

Sample Output

33

Comments

There are no comments at the moment.