← All problemsSign in

War_In_Country

As you are aware that your neighbouring country is under the war. You being the chief securtiy adivser of your country are worry about security of your country. So you decided to export $x$ unit of weapon in your border area from your security center. To do so you have $n$ kind of transport vehicles where $i_{th}$ vehicle take $a_i$ time for one trip. Each vehicle in one trip are capable of trans

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