← All problemsSign in

Benu and Sale

In a parallel universe, Bennett University, constructed fully, has a big supermarket named "Fourier Mart." Many students and faculty from different schools come to shop here. The supermarket is having a "Buy 3 get 3" sale today. That means for every three items you buy, you get three more for free. The items can be of varying price. However, they always charge for the 3 most costly items and give

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