1944Ones

1944   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

说明

7
14
通过提交
时空限制2000ms/64mb
题目来源University of Waterloo Local Contest 2001.06.02
评测方式在线评测
题目类型
难        度