#C. 幂数列求和

    Type: Default 1000ms 256MiB

幂数列求和

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.

幂数列求和

题目描述

计算 13+22+33+42+(n1)3+n21^3+2^2+3^3+4^2\cdots+(n-1)^3+n^2 的值,其中正整数 nn 不大于 100。

输入格式

输入一个正整数 nn

输出格式

输出一个正整数,表示最后求和的答案。

样例 #1

样例输入 #1

100

样例输出 #1

12669200

提示

数据保证,1n1001 \leq n \leq 100

数学那点事

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
4
Start at
2024-5-25 12:00
End at
2024-9-27 12:00
Duration
3000 hour(s)
Host
Partic.
68