Single Jon
CodeChefOpen on judge ↗
Jon is single and lonely. He wants to talk to a girl to break his loneliness. So, he went to a online chat site and started searching for girls. He realised that users with $Username$ ended with $F$ are female users and users with $Username$ ended with $M$ are male users. It is guaranteed that an $Username$ will always end with $F$ or $M$. Write a program to help Jon find out more female users
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