Chocolate Party
Chef has hosted a party on Valentine's day for his single friends. He invited $K$ single friends to the party. He initially had $N$ chocolates in his apron which he decided to give away to his friends at the party. Chef does not want to disappoint any of his friends. So he will distribute chocolates evenly to all his friends. If he has less than $K$ chocolates, he will keep them to himself. Sinc
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