Let be the smallest number larger than that can be formed by rearranging digits of , or if no such number exists. For example, and .
Define . You are given and .
Find . Give your answer modulo .
925. 更大的数位排列数 3
记 为:通过重排 的数位,可以得到的最小的 的数。如果这样的数不存在,则置 。例如,、。
记 ,已知 、。
求 模 的值。
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。