← All problemsSign in

Chef and Gordon Ramsay 2

CodeChefRating 2624Open on judge ↗

In the original [Chef and Gordon Ramsay](https://www.codechef.com/problems/CHGORAM) problem, Chef wanted to close all but three of this restaurants, and used his arch-rival Gordon's Secret Restaurant Placement Formula to decide which three to leave open to ensure their success. Chef is now seeking to expand his chain of restaurants to a new town and, would you know it, the dastardly Gordon has al

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start