Reciprocal Omissions
시간 제한1초메모리 제한1024 MB
주어진 숫자 n에 대해 1/m의 순환마디가 n을 제외한 모든 숫자를 포함하는 가장 작은 m을 찾아, m과 소수부 앞 25자리를 출력한다.
문제
For each n in the integers 1..9 find the smallest m such that 1/m is a repeating decimal whose repeating part contains all the digits 0..9 except n. The repeating part might include some digits more than once.
입력
A single line containing N (1 ≤ N ≤ 9)
출력
A single line containing m and the first 25 digits of its decimal expansion after any leading zeros.