Chef in a new city
CodeChefOpen on judge ↗
Our Chef owns a lot of restaurants with name ‘Eat byte’. Now he has decided to move his business to a new city. So, he went to a new city and wants to open some restaurants there. This city has one entrance and one exit point, connecting it to other cities. He has chosen one place on each road in the city where he can open up his restaurant. He calculated the cost of opening restaurants on all tho
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