← All problemsSign in

COVID&O2

In this second wave of corona pandemic, oxygen crisis is all over India there is one place with n oxygen cylinders with volume V1, V2,-- , Vi-- ,-Vn oxygen where i th cylinder contains volume Vi. They have a rule that one person can take away only one cylinder and total amount of oxygen is displayed on a big screen visible to all and it keeps updating after departure of every cylinder .Alice want

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