Decoding Jack
CodeChefOpen on judge ↗
Jack works for the FBI as a decoder. One day, he taps into a network and hears terrorists talking about bombing a hotel which has $10^{10}$ rooms. The terrorists used code language (consisting only of $‘I’$ and $‘D’$) to communicate. The final message that Jack heard was the room number where the terrorists decided to plant the bomb. As Jack didn’t understand the language, he noted down only the f
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