Pro.ID21146 TitleOnes Title链接http://10.20.2.8/oj/exercise/problem?problem_id=21146 AC52 Submit101 Ratio51.49% 时间&空间限制描述Given any integer 0 ≤ n ≤ 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1's. How many digits are in the smallest such a multiple of n? 输入Mutiple test case, one integer per line. 输出Description Given any integer 0 ≤ n ≤ 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1's. How many digits are in the smallest such a multiple of n? Input Mutiple test case, one integer per line. Output For each test case, output the result in a line. Sample Input 3 Sample Output 3 Source 样例输入3 样例输出3 作者 |