#Lutece3251. 繁星点点
繁星点点
Migrated from Lutece 3251 繁星点点
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
求有多少个阶为 的方阵 ,满足至少有一行或者一列的元全部相等。
其中 。答案对 取模。
Input
一行,一个正整数,表示 。
Output
Samples
2
63
Constraints
一行,一个整数,表示答案。
Note
Resources
2024 UESTC ICPC Training for Math