Problem E
Mineral deposits
Languages
da
de
en
et
fi
lt
lv
pl
uk

You handle signal processing for an extra-terrestrial mining
company, and your vessel is currently approaching an asteroid.
Preliminary scans show the presence of
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
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
You need to minimise the number of waves of probes that is sent to the surface.
Interaction
This is an interactive problem. Interaction begins with you
reading a single line containing three integers
You then ask at most
Interaction ends with you printing a single line consisting
of ! followed by
Your submission is considered correct if you print all locations of the mineral deposits. You may print them in any order.
Constraints and Scoring
We always have
Your solution will be tested on a set of test groups, each worth a number of points. Each test group contains a set of test cases. To get the points for a test group you need to solve all test cases in the test group. Your final score will be the maximum score of a single submission.
Group |
Points |
Constraints |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No further constraints |
Example
In this example, there are
In the next wave, you might send
Read | Sample Interaction 1 | Write |
---|
4 2 10
? -4 -3 -1 0 2 -1
2 4 4 4 6 10
? 1 2 0 -2
0 3 5 8
! 1 2 -3 -2