← All problemsSign in

CHEF & HOTEL

Chef has built a new hotel and he has decided to prepare a variety of dishes and also a fixed rate for each dish. But unfortunately, he did not have a billing machine to calculate the bill and return the exact change to the customers. Chef, though an expert cook, is very weak in the calculation. So he decided to hire you temporarily and look after the bill calculations. You are given the bill of a

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