← All problemsSign in

Buy Pizzazium

Evil Dr. Doofenshmirtz and Team Phineas are going to buy the super fascinating and rare chemical element Pizzazium Infinionite (symbol Pzl) at the Superduper Mega Superstore in Danville. They both arrive at the same time and want to buy all the canisters but end up in a quarrel. They decide that given N number of canisters that are arranged in the store in a particular sequence they would buy one

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