Rishav and his phone
CodeChefOpen on judge ↗
Remember the old Nokia phones our parents used to have in which you have to press number 2 three times to type 'c' and so on... well Rishav has one. Now he sent a message S to his friend. His friend asked him how many times did he press the buttons to send this message. Our friend Rishav is a little weak in logical thinking and calculations, it would be great if you help him. Thanks! Input The
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