HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Problems from Olympiads.ru > problem:


107b. 50242 - Numbers whose sum of the digits is divisible by K

Guest
• Discussion of problem (3)

Volume problems

• 102. 50237 - Is it the same color?
• 103. 50238 - The smallest number
• 105. 50243 - Sum of digits
• 107a. 50240 - The numbers that are...
• 107b. 50242 - Numbers whose ...
• 113. 50241 - Greatest common divisor
• 127b. 50730 - The largest product
• 127c. 50731 - The largest product (2)
• 133. 50239 - Eating cheese
• 138. 50732 - Sorting
• 147. 50251 - Symmetric matrix
• 159. 50668 - Triangle
• 206. 50252 - Birthday

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 Input 2
100 3
22 4
Output 1 Output 2
33
5

Для отправки решений необходимо выполнить вход.

www.contester.ru