3

鸡枞  •  12天前


include

using namespace std;

int main() {

int n, x = 0, y = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
	x = x + i;
	y = x + y;
}
cout << y;
return 0;

}


评论:

请先登录,才能进行评论