Chocolate Progression
CodeChefOpen on judge ↗
Problem Definition: Akshay is having his birthday party today. He has invited N friends to his party. Each of his friends have given Akshay a gift. At the end of the party, as a return gift, Akshay has decided to give chocolates to all of his friends. His father, Rushang, is a mathematician and is fond of puzzles. So he gives a puzzle to Akshay and all his friends. The puzzle is that Akshay can d
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