bachelors party
CodeChefOpen on judge ↗
In a multi-storey building, some bachelors decide to have a party. They will dance and enjoy in the party if everyone is energetic, therefore they wanted Chef to decide a floor for them such that the sum of tiredness of all bachelors is least for reaching this floor. But as always, Chef is busy and so he wants you to find such a floor for the bachelors so that they can enjoy the party. Note: To m
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