B. i 的 i 次方

    Type: Default 1000ms 256MiB

i 的 i 次方

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.

题目描述

给你整数 nn,请计算 11+22+33++(n1)(n1)+nn1^1+2^2+3^3+\dots + (n-1)^{(n-1)} + n^n

输入格式

一行一个整数 nn

输出格式

一行一个整数,即对应的答案。

1
1
2
5
3
32
10
10405071317

数据规模与约定

保证 1n101\le n\le 10

XAZXOI Round 13 - Level 1

Not Attended
Status
Done
Rule
Ledo
Problem
4
Start at
2025-4-19 19:00
End at
2025-4-20 12:00
Duration
17 hour(s)
Host
Partic.
3