酷代码 AI
菜单
全部AI  /  热门  /  AI写代码神器
服务商

description 计算正 n n 边形的顶点用 m m 种颜色染色的不同方案数,考虑正 n n 边形的旋转操作(旋转角度为 360 ° / n 360°/n 的整数倍)。 format input 第一行包含两个整数 n n 和 m m。 3 ≤ n ≤ 10 , 2 ≤ m ≤ 5 3≤n≤10,2≤m≤5 。 output 输出方案数。

Sample Input 1 ``` 3 2 ``` Sample Output 1 ``` 6 ``` Sample Input 2 ``` 4 3 ``` Sample Output 2 ``` 18 ``` [2024-12-13 21:21:15 | AI写代码神器 | 74点数解答]

相关提问