Chef and his Girl Friend
CodeChefOpen on judge ↗
Chef’s girlfriend has been kidnapped by a kidnapper. She has been captivated on the terrace of a multi-story building. The Building has N floors and each floor has M rooms in it. Also the Building is cylindrical in shape (first and last rooms of a floor are adjacent). Each room has Ki,j number of gold coins in it. The Kidnapper has asked the chef to collect and give him the maximum number of gold
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