Pizza Comparision
Chef makes $2$ types of (square) pizzas: - A small pizza, with length $10$ inches, costing $A$ rupees. - A large pizza, with length $15$ inches, costing $B$ rupees. His customers are wondering which pizza is more optimal to buy if they want to maximize the amount of pizza received per rupee spent. For comparing, we will assume the amount of pizza to be it's area. Output $\text{'Small'}$ if the
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