Fountain Parks
문제
In a nearby park, there are fountains, labeled from to . We model the fountains as points on a two-dimensional plane. Namely, fountain () is a point where and are even integers. The locations of the fountains are all distinct.
Timothy the architect has been hired to plan the construction of some roads and the placement of one bench per road. A road is a horizontal or vertical line segment of length , whose endpoints are two distinct fountains. The roads should be constructed such that one can travel between any two fountains by moving along roads. Initially, there are no roads in the park.
For each road, exactly one bench needs to be placed in the park and assigned to (i.e., face) that road. Each bench must be placed at some point such that and are odd integers. The locations of the benches must be all distinct. A bench at can only be assigned to a road if both of the road's endpoints are among , , and . For example, the bench at can only be assigned to a road, which is one of the four line segments (2, 2) – (2, 4), (2, 4) – (4, 4), (4, 4) – (4, 2), (4, 2) – (2, 2).
Help Timothy determine if it is possible to construct roads, and place and assign benches satisfying all conditions given above, and if so, provide him with a feasible solution. If there are multiple feasible solutions that satisfy all conditions, you can report any of them.