Chef Meets Alan Turing
CodeChefOpen on judge ↗
Chef met his best friend Alan Turing today for watching the Football finals. Chef tells Alan that "The team who has scored most number of goals throughout the season is going to win today's finals". Alan wants to prove that Chef is wrong. He knows about the goals scored by all the N teams through out the season except the finals. If the top two scoring teams are in the finals Chef is right and an
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