Cookie Day
A very caring mother has $N$ cookie jars with her. Each jar contains a different type of cookie. There are $A_i$ cookies in the $i$-th jar. The mother wanted to give some cookies to her $K$ children, and she decided to only distribute cookies **of a single type**. That is, she'll choose **exactly one** of the $N$ jars and distribute the cookies within it. She'd like to ensure a couple of thin
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