E - Password Riddle
CodeChefOpen on judge ↗
*"What's your password, Ranju?"* *"one two three four"*, Ranju said Do you think it's *1234*? No, it's not. As it turns out that Ranju has made a riddle with his password. It's actually *2444*. Clever, isn't it? It's one *2* and three *4*s. However, if we told Ranju to write down his password, he would write this - *"one two, three four."* Note that comma. It helps a lot, right? The comma
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