Make Some Money
CodeChefOpen on judge ↗
Your Friend has a cinema hall and you are aware that the most anticipated movie of the year is about to be released . So you want to make him some profit by filling the hall and keeping everyone satisfied. This hall has an entrance at the very front and very back of the room. Each person has some assigned seat. It is possible for multiple people to have the same assigned seat. The people will
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