Halloween & Chocolates
CodeChefOpen on judge ↗
As Halloween is around the corner, the children in the area decided to go take chocolates from the neighbour . As a part of Halloween the children gets dressed as character and receive chocolates. There are $N$ houses in the area and $K$ ( $1$ <= $K$ <= $100$ ) children. Where the $ith$ ( $0$ <= $i$ < $N$ ) house can provide $Ai$ chocolates. Here $Ai$ represents the number of chocolates the fami
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