Equal numbers
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given a positive integer K. Find the smallest multiple of K, all digits are equal (using, of course, the decimal system).
Input
Set the number of K (2 <= K <= 1000).
Output
Display the number and the number of digits in the number. If the solution does not exist, display 0 0.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 17%