B - Bob Learns To Read
CodeChefOpen on judge ↗
Bob is just learning to read. He has difficulty reading some complex words, so you want to help him. Bob is given $2$ words $A$ and $B$, which he will read back to back (read $A$ completely then read $B$ completely). The difficulty for Bob arises whenever he reads a character that's not the same as the previous character he read. For example, if Bob is reading only the word $icpc$, he will find
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