Tap here to switch tabs
Problem
Submissions

Problem: Smallest Divisible Digit Product I

med
30 min
Try to solve the Smallest Divisible Digit Product I problem.

Statement

Given two integers n and t, return the smallest integer greater than or equal to n such that the product of its digits is divisible by t.

Constraints:

  • 1≤1 \leq n ≤100\leq 100

  • 1≤1 \leq t ≤10\leq 10

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Smallest Divisible Digit Product I

med
30 min
Try to solve the Smallest Divisible Digit Product I problem.

Statement

Given two integers n and t, return the smallest integer greater than or equal to n such that the product of its digits is divisible by t.

Constraints:

  • 1≤1 \leq n ≤100\leq 100

  • 1≤1 \leq t ≤10\leq 10