Cricket
CodeChefOpen on judge ↗
In cricket tournament, the winner of a match is awarded with 3 points and the loser 0 points. In case of a tie, both teams are awarded with 1 point each.You had given number of wins for each team in the tournament, and the number of ties for each team in the tournament and your job is to calculate the maximum points a team in the tournament has.For example:- there are 6 teams in a tournament 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