Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb. Question by Ibrahim Mesecan.
n digit kth number divisible by m
Question:
For example, 10002 is the first 5-digit number that
is divisible by by 3. And 10005 is the second 5-digit number that
is divisible by by 3. Write a progra that finds kth
n-digit number which is divisible by m.
Input specification
You will be given three integers number (n, k and m)
where 2 ≤ n ≤ 30, 0 ≤ k ≤ 20,000 and
0 ≤ m ≤ 105.
Output specification
Show an n-digit number.
Sample Input
5 5 5
|
Sample Output
10020
|
Для отправки решений необходимо выполнить вход.
|