Charlie Chocolate Factory
CodeChefOpen on judge ↗
Charlie’s dream is to make tasty chocolates for the kids. For the 1st assignment, N stocks will be made. Each packet is numbered starting from its ‘stock number’ to N-1. Packets are reduced by 1 in each stock. The packets do not contain equal amount of chocolates. The number of chocolates in each packet is one greater than the number assigned on the packet. Charlie wants an exotic display of ch
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