HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


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

Guest
• Discussion of problem (3)

Section problems

• 50243 - Sum of digits
• 50241 - Greatest common divisor
• 50240 - The numbers that are divisi...
• 50242 - Numbers whose sum of ...
• 50248 - Power of two
• 50641 - Strong Prime Power
• 50249 - Ladders
• 50247 - Missing numbers
• 50267 - Interesting permutations
• 50640 - Cubes
• 50377 - kth Permutation
• 50341 - Separate Into Digits

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