← All problemsSign in

Girlfriend Problem

Harsha's girlfriend likes playing with Harsha. She gave him two numbers L and R. She wants him to find the sum of product of digits of all the numbers between L and R (including L and R). He wants to impress her as he can't stand being alone. So please help him find the answer. As the answer may be large, output the answer modulo $10^9+7$. ###Input: - First line will contain T ,the number of tes

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