← All problemsSign in

Game of Quidditch

Quidditch is being played between two teams in Hogwarts. Chef need your help to know who is going to win based on the match statistics. Team is awarded 10 points for throwing the Quaffle into hoop, -30 for getting knocked out by a Beater of the opposite team and 150 for catching the Golden Snitch. The game ends if any of the seekers catches the Golden Snitch. Help chef to predict the winner before

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