The homesick therapy
CodeChefOpen on judge ↗
Mr. A is feeling home-sick. He is in a depressed state and has been scribbling letters in his diary constantly. Dr. B is a psychologist who has taken up Mr. A as his patient. Help Dr. B in analysing the state of Mr. A by counting all appearance of “mom” in the diary. Input The first line inputs a number T, i.e., the number of test-cases from the user. Next T lines contain a series of character
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