__Nutella__'s blog

By __Nutella__, history, 3 years ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it