Mineral deposits
문제
You handle signal processing for an extra-terrestrial mining company, and your vessel is currently approaching an asteroid. Preliminary scans show the presence of mineral deposits on the asteroid, but their precise locations are unknown.
The surface of the asteroid can be seen as a grid of integer coordinates. Each of the mineral deposits is located at unknown integer coordinates such that the th deposit has coordinates with and for some integer corresponding to the size of your initial scan.
To determine the precise locations of the mineral deposits, you may send probes to the surface of the asteroid. The probes are sent out in waves of several probes at once.
Say you sent a wave of probes to the surface at coordinates for . When a probe arrives at its coordinates, it determines the Manhattan distances to each of the mineral deposits and sends the distances back to the ship. All data packets arrive at the same time, and it is not possible to determine which probes returned which distances. Thus the wave returns the integer distances \[|x_i-s_j| + |y_i - t_j| \qquad\text{for all } i \in \{1,\ldots,k\} \text{ and } j \in\{ 1,\ldots,d\}\,.\]
You need to minimise the number of waves of probes that is sent to the surface.
예제
예제 1
4 2 10 2 4 4 4 6 10 0 3 5 8
? -4 -3 -1 0 2 -1 ? 1 2 0 -2 ! 1 2 -3 -2