HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


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

Guest
• Discussion of problem (3)

Section problems

• 50581 - The roots of a quadratic eq...
• 50595 - Sum of the numbers
• 50599 - Sum of Squared Error (SSE...
• 50609 - Long division
• 50548 - Albanian Airlines
• 50243 - Sum of digits
• 50241 - Greatest common divisor
• 50240 - The numbers that are divisi...
• 50242 - Numbers whose sum of ...
• 50248 - Power of two
• 50341 - Separate Into Digits
• 50335 - Five Math Operators
• 50408 - Molecules
• 50304 - Number Pattern
• 50305 - John's Tasks
• 50649 - Puzzle
• 50321 - Missing Number

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