SP8177 JZPEXT - Beautiful numbers EXTREME

Description

We call one integer beautiful, if and only if it is divisible by each of its non-zero digits. Given an interval \[l, r\], calculate how many beautiful numbers n satisfy l

Input Format

N/A

Output Format

N/A