P11680 [Algo Beat Contest 001 B] Between Head and Tail

题目背景

| Problem | Score | Idea | Std | Data | Check | Solution | | :---------------------------------: | :---: | :---------------------------------------------------: | :----------------------------------------------------------: | :---------------------------------------------: | :----------------------------------------------------------: | :----------------------------------------------------------: | | $\text{B - Between Head and Tail}$ | $200$ | [joe_zxq](https://www.luogu.com.cn/user/623577) | [joe_zxq](https://www.luogu.com.cn/user/623577) | [joe_zxq](https://www.luogu.com.cn/user/623577) | [remmymilkyway](https://www.luogu.com.cn/user/551981) | [Link](https://www.luogu.com.cn/article/3wj351hw) by [joe_zxq](https://www.luogu.com.cn/user/623577) |

题目描述

小 Z 将一个正整数 $X$ 称为**首中尾相等数**,当且仅当它满足下面的条件: - $X$ 有奇数个数位。 - $X$ 的首位、末位和最中间的数位上的数字相等。 例如,$12131$ 是**首中尾相等数**,但是 $121121$ 和 $12231$ 不是。特别地,一位数都是**首中尾相等数**。 小 Z 请你求出 $[L,R]$ 中所有的**首中尾相等数**。

输入格式

输出格式

说明/提示

#### 数据范围 对于 $100\%$ 的数据,保证 $1 \le T \le 10$,$1 \le L \le R \le 10^5$。