Can anyone please give me some idea about this USACO problem? DELIVER — Delivery Route
Here is the editorial of the problem but I could not understand why 5N nodes are required.
Can anyone please give me some idea about this USACO problem? DELIVER — Delivery Route
Here is the editorial of the problem but I could not understand why 5N nodes are required.
because you have to build 4n points (up, down, left and right) and themselves, 5n in total.
But why it is enough to consider only the right-angled paths?