Chocolates Distribution
CodeChefOpen on judge ↗
Chef Works in a hotel called CODEPANTRY, and Chef's Chocolate cookies are famous. There are $N$ tables in the hotel, and every table has ordered a certain number of cookies. Since the demand for cookies is so high that the Chef decided to serve the orders in a unique fashion. Chef delivers 1 cookie each to every table in the range L to R, during 1 shift, where L and R can be any possible integers
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