Mittal finds <3
CodeChefOpen on judge ↗
Mittal's crush proposed him recently. Hence, Mittal's friends are now asking for a treat. Upon much persuasion, he finally agreed to host a Burger treat. Mittal is fond of cooking, so he decided to cook burgers himself. But since Mittal is also saving up to buy an expensive gift for his new girlfriend, he wants to spend as little as possible for the treat. Mittal's friends are willing to share any
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