Pizza
CodeChefOpen on judge ↗
Mary is having a party because his team won the African cup so he is inviting his friends to eat some pizza. Unfortunately, Mary's friends can't eat an entire pizza but all of them know exactly how much pizza they can eat and insist on getting the exact amount of pizza but Mary eats one complete pizza and all of them wants his amount of pizza in one slice. Their requests break down to three di
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