CARING TEACHER!
CodeChefOpen on judge ↗
Teacher is very happy today so she bought $K$ chocolates to distribute in $N$ students. In class room she found out that students already had some chocolates with them. So she took the count of the chocolates of each student. Now Teacher decided to distribute the chocolates in students in such a way to minimize the maximum number of chocolates a student can have. Find the maximum numbers
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