A digit DP problem.
Fix the first and last digit using loop and try to calculate how many numbers satisfy for A and B. Take the multiplication and add up to Answer.

Statistics

47% Solution Ratio
kzvd4729Earliest, Apr '21
codesany001Fastest, 1.1s
kzvd4729Lightest, 1.0 MB
codesany001Shortest, 1528B
Toph uses cookies. By continuing you agree to our Cookie Policy.