Robotic Language
CodeChefOpen on judge ↗
A robot can speak a word only if all the letters in the word are seperated by dashes. Write a program that converts simple sentence into a sentence that robot can speak. ###Input: - Single line string input ###Output: - Single line string output ###Constraints - $7 \leq length of string \leq 25$ ###Sample Input: He is my friend ###Sample Output: H-e i-s m-y f-r-i-e-n-d
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