788. Dominating Numbers

A dominating number is a positive integer that has more than half of its digits equal.

For example, is a dominating number because three of its four digits are equal to . But is not a dominating number.

Let be how many dominating numbers are less than . For example, and .

Find . Give your answer modulo .

788. 支配数

若一个正整数中,有大于一半的数位均为同一个数字,则我们称这个数为支配数

例如 是一个支配数,因为它的四个数位中,有三个都是 。但是, 就不是支配数。

为小于 的正整数中,支配数的个数。已知

之值。


这个链接 回到源站。

这个链接 回到详细版题目目录。