Liar Players
CodeChefOpen on judge ↗
Recently our beloved team India faced defeat in a T-20 match against England. So they decided to distribute the blame of the defeat on each of the players equally by stating that they made equal number of runs. There are total 'N' players in the team. To do so, each player must tell tell some lies. A lie can be defined as stating "1 run more" or "1 run less" than the actual score of a player. A pl
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