#Lutece3022. 好像有点奇怪啊
好像有点奇怪啊
Migrated from Lutece 3022 好像有点奇怪啊
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
这看起来是个平常的式子,就和每天早上起来都要刷牙一样平常。但在这道题目中, 被定义为 和 的拼接,例如 和 的拼接是 。同样地, 也是 和 的拼接。这时,这个式子就有些奇怪了。
现在,你需要求出对于给定的 ,有多少三元组 满足这个奇怪的式子且满足 。
Input
一行包括三个整数 。
Output
输出一个整数,代表符合条件的三元组数量。
Samples
5 6 10
7
10 10 100
29
Note
第一个样例中符合条件的三元组有 $(1,1,1),(1,4,6),(1,5,9),(2,2,2),(2,5,6),(3,3,3),(4,4,4)$。
Resources
2023 UESTC ICPC Training for Math