Bakers Street
CodeChefOpen on judge ↗
A small town named Townsville is famous for their cakes. The town has N bakers who deliver to M stores. The number of cakes each baker sends to each store is decided by the Town manager. Each baker is curious to find the difference between the number of cakes he delivers to the two stores where he sends the least number of cakes. Help each baker in Townsville find his answer. ###Input:
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