Slicing Sticks
CodeChefOpen on judge ↗
Senator Palpatine is upto no good and is plotting against the Queen of Naboo. He has released assassins to attack the Queen. Quigon and Obi Wan are aware of this and are constructing a get-away pod to escape from the assassins when required. But you need to help Quigon and Obi Wan to construct the pod. The pod requires multiple metallic pieces of different sizes. You are given a long uniform me
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