← All problemsSign in

GAME 11

CodeChefRating 1353Open on judge ↗

Given a list of $N$ batsmen and $M$ bowlers, each with a given cricketing skill, the selectors are asked to pick a team of $11$ players such that the team has **at least** $4$ batsmen and $4$ bowlers. Find is the **maximum** total cricketing skill of a team which they can form. Note that the total cricketing skill is the sum of cricketing skills of all the players in the team. Print $-1$ if ma

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