← All problemsSign in

Non-matching Name

CodeChefRating 947Open on judge ↗

Alice and Bob invented a brand-new algorithm - but they can't decide what to name it! Alice suggested the name $S_A$, and Bob suggested the name $S_B$. ($S_A$ and $S_B$ are both strings of lowercase English letters.) However, Alice thinks Bob's naming sense is really bad - she'll only be happy if the name given to the algorithm is not close to $S_B$ at all. More specifically, Alice will be hap

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start