A problem that I can't solve from two years

Revision en1, by Mohamed_Saad62, 2020-10-12 04:11:32

I really want to know how to solve this problem :

You are given two positive integers d and s. Find minimal positive integer n which is divisible by d and has sum of digits equal to s.

the link : https://mirror.codeforces.com/contest/1070/problem/A

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Mohamed_Saad62 2020-10-12 04:11:32 291 Initial revision (published)