染色
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.
Description
给 个点染色,每个点都需要一种独一无二的颜色。颜色以数字编号,每个点对颜色都有各自的要求。其中第 个点要求颜色的编号为 到 之间的整数。
请统计有多少种染色方案数满足要求,由于答案可能很大,输出模 的余数。
Format
Input
第一行:单个整数表示
第二行: 个整数表示
Output
单个整数表示答案
Samples
样例输入
3
4 7 2
样例输出
30
Limitation
的数据,
的数据,
的数据,
20241128周赛
- Status
- Done
- Rule
- IOI
- Problem
- 6
- Start at
- 2024-11-28 16:30
- End at
- 2024-11-28 18:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 25