← All problemsSign in

THE CHAMPION

$Tyrion$ $Lannister$ a.k.a. $The$ $Imp$ is again in a big trouble. He has been asked to choose his $Champion$. He has only $two$ options: 1) $Petr$ 2) $tourist$ Well, $Saisha$ offered him a simple solution. From $N$ numbers, if count of $odd$ numbers is $greater$ $than$ $or$ $equal$ to the count of $even$ numbers then choose $Petr$ else choose $tourist$. ###Input:

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