← All problemsSign in

D - Boost

Let's define $Boost$ of a range $[a.....b]$ as the product of all digits of all numbers that lie in the given range $\text{(both a and b inclusive)}$. For eg: If a = 63 and b = 65, then the Boost of this range would be 6 x 3 x 6 x 4 x 6 x 5 = 12960. You have to answer multiple queries keeping the above definition in mind. Since the answer could be very large, compute it $modulo$ ($10^9 +

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start