Letters To Numbers
CodeChefOpen on judge ↗
Problem description. Ramu is trapped in the villains den in Badmanpur. Luckily for him it is an Indian villain who conveniently left a pencil and paper nearby. Ramu remembers his childhood days with the hero, Majnu, when they used code language. Their code was to change the English alphabet to numbers starting with X as 1 and ending with W as 26. So, X=1, Y=2, Z=3, A=4, B=5, etc. They would also
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