Yet Another Chef And Numbers
Chef is again playing with numbers. He defines the *rating* of a number as the count of [trailing zeros](https://en.wikipedia.org/wiki/Trailing_zero) in the product of all the digits of the number. Chef wants you to find the sum of *ratings* of all the numbers between the numbers $A$ and $B$ (**excluding** $A$). As the answer can be very large, print it modulo $10^9+7$. **Note**: If the prod
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.
Sign in to chat with the tutor and save your progress.
Sign in to start