#P15798. [GESP202603 五级] 有限不循环小数
[GESP202603 五级] 有限不循环小数
Background
Related multiple-choice and true/false problems: https://ti.luogu.com.cn/problemset/1209.
Problem Description
If can be converted into a finite, non-repeating decimal, then is called a terminating number.
Please find the number of terminating numbers in the range from to .
Input Format
Input one line containing two integers .
Output Format
Output one line containing one integer, representing the number of terminating numbers in the range from to .
2 11
5
Hint
Sample Explanation
In , the terminating numbers are , , , , and .
Constraints
It is guaranteed that .
Translated by ChatGPT 5