C. 「一本通 5.3 例 3」Windy 数

    Type: Default 1000ms 512MiB

「一本通 5.3 例 3」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.

题目描述

原题来自:SCOI 2009

Windy 定义了一种 Windy 数:不含前导零且相邻两个数字之差至少为 22 的正整数被称为 Windy 数。

Windy 想知道,在 AA 和 BB 之间,包括 AA 和 BB,总共有多少个 Windy 数?

输入格式

一行两个数,分别为 A,BA,B。

输出格式

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

样例 1

1 10
9
25 50
20

数据范围与提示

20%20\% 的数据,满足 1≤A≤B≤1061\le A\le B\le 10^6;
100%100\% 的数据,满足 1≤A≤B≤2×1091\le A\le B\le 2\times 10^9。

初一竞赛组作业——数位DP

Not Claimed
Status
Done
Problem
7
Open Since
2025-3-21 9:30
Deadline
2025-4-26 23:59
Extension
24 hour(s)