Chef Bakes Cake 1
Chef is an expert baker. Each cake costs him $30$ coins to make, and then he sells each for $50$ coins. Today, Chef made a total of $N$ cakes and was able to sell $M$ cakes. The remaining cakes went unsold and were wasted. Find out how much money (in coins) Chef made from these cakes. It may be possible that the answer is negative to indicate Chef lost money. ### Input - The only line of input
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