SPLIT THE FOOD
CodeChefOpen on judge ↗
Two friends Rajesh and Manoj visited a restaurant and ordered $N$ no of dishes, the restaurant owner Santosh, being a generous man, made a deal to them, He said, he would exempt them the cost for a food item, provided that one of the two friends would pay for all of the dishes before the free dish, and the other friend would pay for all the dishes after the free dish. $$ $$ Rajesh and Manoj, bei
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