Champernowne Count
시간 제한1초메모리 제한1024 MB
1부터 i까지 이어 붙인 i번째 Champernowne 단어 중 처음 n개 가운데 k로 나누어떨어지는 것의 개수를 센다.
문제
The th Champernowne word is obtained by writing down the first positive integers and concatenating them together. For example, the 10th Champernowne word is "12345678910".
Given two positive integers and , count how many of the first Champernowne words are divisible by .
입력
The single line of input contains two integers, and .
출력
Output a single integer, which is a count of the first Champernowne words divisible by .