Problem2962--[GESP202306 一级] 累计相加

2962: [GESP202306 一级] 累计相加

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 138  Solved: 122
[Status] [Submit] [Creator:]

Description

输入一个正整数 n,求形如:

1+(1+2)+(1+2+3)+(1+2+3+4)+......+(1+2+3+4+5+......+n) 的累计相加。

Input

输入一个正整数 n。约定1<n100

Output

输出累计相加的结果。

Sample Input Copy

3

Sample Output Copy

10

Source/Category