[R1F]重复度不超过k的数
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.
时空限制
1S/512M
题目描述
定义一个数的重复度为出现最多的数位的出现次数,比如 的重复度为 ,因为 出现了 次。
求 位 进制数(可以有“前导 0”,比如 '' 是一个 位数字)中,重复度不超过 的数字个数,对 取模。
格式
输入格式
第一行包含三个正整数 , , ,分别表示数字的长度、进制以及重复度的限制。
输出格式
输出一个整数,表示满足条件的数字个数,对 取模。
样例
样例输入 #1
3 10 2
样例输出 #1
990
数据规模
对于 的数据,, 。
测试点编号 | 特殊性质 | ||
---|---|---|---|
1 | |||
2 | |||
3 | |||
4 | |||
5~10 |
代码源挑战赛 Round 1
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-2-28 20:00
- End at
- 2025-2-28 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 524