← All problemsSign in

SATYUG RAHASYA

Guruji wants to explain the rahasya of satyug project to Gaitonde. But to understand this project Gaitonde needs to solve a problem. The problem describes there are q queries each query contains integer n. String s should be obtained by appending each integer 1 to n . (if n=10 ,then s=12345678910) . Gaitonde have to find the sum of nth digit of string s in each queries. Since Gaitonde is not go

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