Chef and His Friend
CodeChefOpen on judge ↗
Chef get bored of cooking and decided to play a game with his friend. Chef and his friend have two sacks filled with coins. Chef’s bag contains N coins and his friend bag contains M coins. Each coin has a value K written on it. Chef selects a coin from his bag, then chef’s friend selects one coin from his own bag and another coin form his chef’s bag. You are asked to find the maximum product of t
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