The Sequence
CodeChefOpen on judge ↗
Two good friends M.H. and S.K.M. like to play with digits.... One fine morning another friend A.D. gave them a huge stream of digits and asked some rather 'simple' questions. The two good friends M.H. and S.K.M. scrathed their heads and could not come up with an efficient solution. Can you help them? The digit stream presented was 0123456789101112131415161718......... A.D.'s rather simple que
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