Олимпиадный тренинг

Задача 2964. Nested Loops - 1


Two numbers N and K are entered. Print the number of numbers from 1 to N (inclusive) such that their sum of digits is divisible by K.
 
Examples
# Input Output
1 100 3 33
2 22 4 5