← All problemsSign in

Chocolate Distribution

Arish loves chocolate very much, in his birthday Party Arish has to invite $A$ number of friends and he has $N$ number of chocolates. At the end of the birthday, he has to take all chocolates in Infront of them and put them on a table. then he starts giving one chocolate to his $A$ number of friends one by one, after everyone gets one chocolate, he again repeats the same process of giving one cho

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start