#3345

Smallest Divisible Digit Product I

pupil · 350 · lc easy +23 · 64.5% accepted · 72 likes · top 68%

Description

You are given two integers n and t. Return the smallest integer greater than or equal to n whose digit product is divisible by t.

Code

1
2
3