#Lutece2595. 数字求和
数字求和
Migrated from Lutece 2595 数字求和
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
Constraints
Note
样例 中需要相加的数为 。
Resources
2021 UESTC ICPC Training for Dynamic Programming