<var id="ltzjf"></var><progress id="ltzjf"></progress><cite id="ltzjf"><video id="ltzjf"></video></cite>
<menuitem id="ltzjf"><strike id="ltzjf"></strike></menuitem>
<cite id="ltzjf"><video id="ltzjf"><menuitem id="ltzjf"></menuitem></video></cite>
<var id="ltzjf"><strike id="ltzjf"></strike></var>
<cite id="ltzjf"></cite>
<var id="ltzjf"><video id="ltzjf"></video></var>
<cite id="ltzjf"><strike id="ltzjf"></strike></cite>
<cite id="ltzjf"><span id="ltzjf"></span></cite>
<ins id="ltzjf"><span id="ltzjf"><var id="ltzjf"></var></span></ins><cite id="ltzjf"><video id="ltzjf"></video></cite>
<var id="ltzjf"><video id="ltzjf"></video></var>
<cite id="ltzjf"><span id="ltzjf"><menuitem id="ltzjf"></menuitem></span></cite>
<ins id="ltzjf"><span id="ltzjf"><var id="ltzjf"></var></span></ins><cite id="ltzjf"></cite>
Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register
Language:
Ones
Time Limit: 1000MSMemory Limit: 65536K
Total Submissions: 12478Accepted: 6960

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

Each line contains a number n.

Output

Output the number of digits.

Sample Input

3 
7 
9901

Sample Output

3
6
12

Source

[Submit]   [Go Back]   [Status]   [Discuss]

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator

欧美免费全部免费观看_日本免费高清在线视频_欧美色视频日本片免费
<var id="ltzjf"></var><progress id="ltzjf"></progress><cite id="ltzjf"><video id="ltzjf"></video></cite>
<menuitem id="ltzjf"><strike id="ltzjf"></strike></menuitem>
<cite id="ltzjf"><video id="ltzjf"><menuitem id="ltzjf"></menuitem></video></cite>
<var id="ltzjf"><strike id="ltzjf"></strike></var>
<cite id="ltzjf"></cite>
<var id="ltzjf"><video id="ltzjf"></video></var>
<cite id="ltzjf"><strike id="ltzjf"></strike></cite>
<cite id="ltzjf"><span id="ltzjf"></span></cite>
<ins id="ltzjf"><span id="ltzjf"><var id="ltzjf"></var></span></ins><cite id="ltzjf"><video id="ltzjf"></video></cite>
<var id="ltzjf"><video id="ltzjf"></video></var>
<cite id="ltzjf"><span id="ltzjf"><menuitem id="ltzjf"></menuitem></span></cite>
<ins id="ltzjf"><span id="ltzjf"><var id="ltzjf"></var></span></ins><cite id="ltzjf"></cite>