Make Harsh Rich
CodeChefOpen on judge ↗
Baba Prashant told Harsh if he gives poor children some chocolates, he will become rich. Harsh buys "n" chocolates and there are "k" children. Baba Prashant also instructs that: He can't divide one chocolate into parts but he is allowed to not use some chocolates at all AND Suppose the kid who receives the minimum number of chocolates has "a" chocolates and the kid who receives the maximum numbe
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