String Puzzle
CodeChefOpen on judge ↗
Sam has a strange problem. He can’t be able to differentiate between alphabets and digits. So, whenever he is asked to write something, he writes it in the combination of both. Now, he has been asked to write his date of birth. He has written it but in the form of a string consisting of arbitrary alphabets and digits. Your job is to help Sam print his date of birth properly in MM-DD-YYYY, MM-DD-Y
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