2139Ones

2139   Ones

题目描述

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?

输入格式:

输出格式:

输入样例 复制
3 
7 
9901
输出样例 复制
3
6
12

说明

2
2
通过提交
时空限制1000ms/128mb
题目来源
评测方式在线评测
题目类型
难        度