885. Sorted Digits

For a positive integer d, let f(d) be the number created by sorting the digits of d in ascending order, removing any zeros. For example, f(3403)=334.

Let S(n) be the sum of f(d) for all positive integers d of n digits or less. You are given S(1)=45 and S(5)=1543545675.

Find S(18). Give your answer modulo 1123455689.

885. 排好序的数位

对某正整数 d,我们将其所有数位从小到大排序,去除所有前导零后拼出一个新数 f(d)。例如:f(3403)=334。

我们记 S(n) 为所有小于等于 n 位的十进制数 d 的 f(d) 之和。已知:S(1)=45、S(5)=1543545675。

求 S(18) 模 1123455689 之值。


点 这个链接 回到源站。

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