Final Match
CodeChefOpen on judge ↗
Team $A$ and Team $B$ were ready to face each other in the world cup finals. However, due to heavy rains, the match did not take place. Both the teams were not ready to share the title. As it was the World finals, one team needed to be declared the winner. The organizing committee decided to declare the winner by a toss. Umpire tossed the coin with heads on the top. Team $A$ calls for heads and
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