Zoo Game
CodeChefOpen on judge ↗
You are playing a game with friends. This game requires entering a word that consists of $x$ and $y$ that denote the number of $Z$s and $O$s respectively. The input word is considered similar to the word zoo if $2*x = y$. For winning the word needs to be similar to the zoo. For your reference, consider words such as 'zzzoooooo' and 'zzzzoooooooo' are similar to the word zoo but not the words
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