Saraswati Puja
CodeChefOpen on judge ↗
Saraswati Puja is celebrated at NIT Trichy every year with a lot of enthusiasm. Every year N number of people volunteer to serve food to the people attending the puja. Let’s call these N people the servers and the people to be served as eaters. The eaters are sitting in M columns. The number of eaters in each column can be different. Harsh is in charge of managing the servers. He doesn’t want an
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