This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
int32_t main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
int n, k;
std::cin >> n >> k;
std::vector<std::pair<int, int>> vec(n);
for (auto& [x, y] : vec) {
std::cin >> x >> y;
}
if (k == 1) {
int min_x = vec[0].first, min_y = vec[0].second;
int max_x = vec[0].first, max_y = vec[0].second;
for (auto [x, y] : vec) {
min_x = std::min(min_x, x);
min_y = std::min(min_y, y);
}
std::cout << min_x << " " << min_y << " " << std::max(max_x - min_x, max_y - min_y) << std::endl;
return 0;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |