|
|
@ -34,12 +34,11 @@ bool isDistressBeacon(const Sensor& c)
|
|
|
|
|
|
|
|
|
|
|
|
int main()
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
long px, py, bx, by;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string line;
|
|
|
|
std::string line;
|
|
|
|
std::getline(std::cin, line);
|
|
|
|
std::getline(std::cin, line);
|
|
|
|
for (; !std::cin.eof(); std::getline(std::cin, line)) {
|
|
|
|
for (; !std::cin.eof(); std::getline(std::cin, line)) {
|
|
|
|
auto a = sscanf(line.c_str(),
|
|
|
|
long px, py, bx, by;
|
|
|
|
|
|
|
|
sscanf(line.c_str(),
|
|
|
|
"Sensor at x=%ld, y=%ld: closest beacon is at x=%ld, y=%ld",
|
|
|
|
"Sensor at x=%ld, y=%ld: closest beacon is at x=%ld, y=%ld",
|
|
|
|
&px, &py, &bx, &by);
|
|
|
|
&px, &py, &bx, &by);
|
|
|
|
|
|
|
|
|
|
|
|