Sherlock & Flames
CodeChefOpen on judge ↗
Molly is in love with Sherlock .She wants to decide the nature of relationship between her and Sherlock using the game of FLAME. FLAME stands for: {"Friendship","Love","Affection","Marriage","Enemies"} The rules of FLAME are: 1) The names of two people are taken. 2) Then the common letters are deleted from both the names. 3) Then x_rem is calculated which is the number of leftover letters in
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