Sagar is a player
CodeChefOpen on judge ↗
Sagar wants to make a team for playing an online game . A good team should consist of a sentinel, a healer, a duelist, and a controller. There are $n_1$ different types of sentinels Sagar can buy (the i-th of them costs $a_i$ coins), $n_2$ different types of healer (the i-th of them costs $b_i$ coins), $n_3$ different types of duelists (the i-th of them costs $c_i$ coins) and $n_4$ different type
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