4302: JSOI2022“信息与未来”小学组 问题 A:幸运数字
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:42
Solved:25
Description
如果⼀个⼗进制数从左到右读时,所有数位都是从⼩到⼤严格递增的,我们就称它是幸运数字。例如:
9、27、1234 都是幸运数字;
11、80、243、1503 不是幸运数字。
对于给定的 a 和 b,请你求出 a, a + 1, a + 2, …, b 中幸运数字的数量。
Input
1 100
Output
45
Sample Input Copy
4096 65536
Sample Output Copy
141