Pizza Party
Chef is hosting a pizza party and has invited $A$ boys and $B$ girls. Don't forget to include Chef himself; he is a boy. It is known that a boy eats $4$ slices of pizza while a girl eats $3$ slices of pizza. Further, a single pizza comes with $8$ total slices of pizza. How many pizzas does Chef need to ensure nobody remains hungry? It is fine to waste some of the food. ### Input - The first an
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