VALENTINES DAY DATE PLAN
CodeChefOpen on judge ↗
Chef Abhi is taking his friend Kuni on a long drive on valentine's day. Being an admirer of nature, Kuni wants to see as many different things as possible. So, she asked Abhi to drive through all the roads to near by cities so that she could see different things on each road. Abhi is on a tight budget. He doesn't want to waste money on petrol. So he would like to drive on each road only once. And
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