Need help in a problem

Правка en1, от __Nutella__, 2022-04-08 06:08:32

Ques.

Find the min. Number whose sum of digits is k and the number should be divisible by f. Since number can be large return output as string. Return -1 if no such number exist.

f < 500 k < 5000

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский __Nutella__ 2022-04-08 06:08:32 226 Initial revision (published)