Lose Less
Chefland is participating in the football world cup. Every football match played by Chefland has one of three outcomes: Chefland can win, the match can be tied, or Chefland can lose. - If Chefland wins the match, they will receive $3$ points. - If the match is tied, they will receive $1$ point. - If Chefland loses the match, they will receive $0$ points. Chefland has played $M$ matches so far, a
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