#P11029. 『DABOI Round 1』A Simple Problem
『DABOI Round 1』A Simple Problem
Background
Red problems make people "red-hot" (hong wen).
Problem Description
Compute $\prod \limits_{i=1}^{n} \prod\limits_{j=1}^{i} \prod \limits_{k=1}^{j} k^k$ modulo .
Input Format
The input contains line with integer, which is .
Output Format
Output line with integer, which is the answer.
3
1728
Hint
Constraints
- For of the testdata, .
- For of the testdata, .
- For of the testdata, .
Translated by ChatGPT 5