Cake Cutting
CodeChefOpen on judge ↗
Supraja and Her Birthday Cake Its Supraja Birthday and she is given a big egg less cake to cut of size N. All his friends including supraja likes pieces of size s1,s2,s3. Supraja likes cake very much so she does not want to waste anything and wanted to cut the pieces in the mentioned sizes. Importantly she wanted to cut as many pieces as possible. Formally, She likes to cut the cake in suc
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