Chef and Kids
CodeChefOpen on judge ↗
Chef wants to organize a competition for kids wherein they will compete for toffees and chocolates, placed on chairs. The toffees and chocolates are placed in a sequential progressive manner. It means that the difference in number of toffees or chocolates placed in any two consecutive seats is constant. The chocolates can be placed only on two seats. Chef has two different packs of chocolat
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