Submission #998028

#TimeUsernameProblemLanguageResultExecution timeMemory
998028Qwerty1232Izvanzemaljci (COI21_izvanzemaljci)C++17
0 / 100
1 ms348 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...