Market
CodeChefOpen on judge ↗
Bobby's mom has told him to buy $W{_1}$ kg potatoes, $W{_2}$ kg tomatoes and $W{_3}$ kg cabbages. Bobby is in a hurry and he doesn't have the time to buy different veggies from different markets. Help Bobby find the cheapest cost $C$ at which he can buy all three veggies from a single market. ### Input - The first line contains an integer $N$, which denotes the number of markets. - The second
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