Consider numbers from 1 to n.
You have to find the smallest lexicographically number among them which is divisible by k.
Consider numbers from 1 to n.
You have to find the smallest lexicographically number among them which is divisible by k.
2000 17
2000 20
2000 22
0 0
1003
100
1012