Chef and Referee
CodeChefOpen on judge ↗
Chef is back to the Hockey Stadium again but this time as a referee. Chef has been tasked to officiate the final of the FIH Hockey World Cup 2018 between Belgium and Netherlands. Chef loves mathematics and is superstitious about numbers. So, he comes up with a new scoring system for the match where he assigns different multipliers to both the teams. Now, given the two multipliers P and Q for both
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