← All problemsSign in

Guess Who Delivers

CodeChefRating 3125Open on judge ↗

Anany and Manik need to deliver pizzas across the city, which can be considered as a tree consisting of $N$ nodes and $N-1$ edges. The drivers can start at any of the nodes at the beginning of the first day. They need not start at the same nodes. - There are $M$ days on which deliveries are to made. On the $i$-th day, the pizzas must be picked up from node $S_i$ and delivered to node $D_i$. Exa

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