Problem B: 【GESP1】 累计相加
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:118
Solved:72
Description
输入一个正整数n,求形如:1 + (1 + 2) + (1 + 2 + 3) + (1 + 2 + 3 + 4) +…⋯(1 + 2 + 3 + 4 + 5 + …⋯n)的累计相加。
Input
输入一个正整数。约定 1 ≤ n ≤ 100。
Output
输出累计相加的结果。
Sample Input Copy
3
Sample Output Copy
10