Gold Coins 101
Chef and Chefina are competing against each other in a football game where the player scoring the maximum goals, wins. It is known that the winner of the game receives $A$ gold coins while the loser receives $B$ gold coins. Given that Chef scored $X$ goals and Chefina scored $Y$ goals $(X \neq Y)$, find the number of coins Chef would receive. ### Input The first and only line of input will con
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