← All problemsSign in

CHEEZY PIZZA

CHEEZY PIZZA A pizza boy has two bags filled with pizzas. He arranged the pizzas from both the bags into two stacks P and Q consisting of ‘n1’ and ‘n2’ pizzas respectively. He allotted different numbers to the pizzas of different kinds and called it ‘kind number’. He then rearranged the pizzas in a non-increasing order of their kind numbers. He now wants to find the cheesiness of all the pizzas

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start