Codeforces 1070A Find a Number(BFS) 2018-2019 ICPC, NEERC, Southern Subregional Contest Problem A
DescriptionYouaregiventwopositiveintegersdddandsss.Findminimalpositiveintegernnnwhichisdivisiblebydddandhassumofdigitsequaltosss.InputThefirstlinecontainstwopositiveintegersdddandsss(1≤d≤500,1≤s≤5000)