← All problemsSign in

Cricket Match

In a special cricket match, there are N batsmen. Each batsman here gets to hit only one shot during the entire inning The runs (r) scored by a batsman depends on the order of sending them on the field. (for example, the batsman A scores 10 runs if sent out first but 6 runs if sent out third .. and so on) Chef is the coach of the team and wants to maximize the runs scored by the team. He has ask

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start