#A. [SCOI2009] windy 数

    Type: RemoteJudge 1000ms 125MiB

[SCOI2009] windy 数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

windy 定义了一种 windy 数。

题目描述

不含前导零且相邻两个数字之差至少为 22 的正整数被称为 windy 数。windy 想知道,在 aabb 之间,包括 aabb ,总共有多少个 windy 数?

输入格式

输入只有一行两个整数,分别表示 aabb

输出格式

输出一行一个整数表示答案。

1 10
9
25 50

20

提示

数据规模与约定

对于全部的测试点,保证 1ab2×1091 \leq a \leq b \leq 2 \times 10^9

ch03 - 数位 DP

Not Claimed
Status
Done
Problem
8
Open Since
2023-12-8 0:00
Deadline
2024-3-3 23:59
Extension
2400 hour(s)