[GESP202306 一级] 累计相加
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
输入一个正整数 ,求形如:
$1+(1+2)+(1+2+3)+(1+2+3+4)+ \cdots +(1+2+3+4+5+ \cdots +n)$ 的累计相加。
输入格式
输入一个正整数 。约定 。
输出格式
输出累计相加的结果。
3
10
4
20
10
220