Chef and Burgerland
CodeChefOpen on judge ↗
Problem Statement Chef runs a Burgerland in his city. Every weekend he visits the market to buy various ingredients for his stall. The amount of ingredients he buys depends upon his earnings in the previous week which is denoted by K. He is a very clever man so he always buys those ingredients which costs the minimum and adds the maximum to the taste of burgers. He knows the cost of each ingredi
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