← All problemsSign in

Lala and the Village

Lala play Clash of Clans all day. One day he wanted to build two new tesla towers in his village. There are N towers available in the market, for each its power and cost are given. In the game there are two types of money, one is coins and other is elixirs. For each tesla tower, cost can be either in coins or elixirs. Your task is to help Lala to find two tesla towers with maximum total power so

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