Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Difficulty Alpha
We introduce two numbers N and K . Display the number of numbers
range from 1 to N such that the sum of digits
divisible by K
where N is an integer between 1 ≤ N ≤ 60,000
and 1 ≤ K ≤ 100
input 1 b>
td>
|
Input 2 b>
td> tr>
100 3
td>
|
22 4
td> tr> |
Output 1 b>
td>
|
Output 2 b>
td> tr>
33
td>
|
5
td> tr> | | |
Для отправки решений необходимо выполнить вход.
|