# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
693853 | 79brue | Izvanzemaljci (COI21_izvanzemaljci) | C++17 | 1 ms | 212 KiB |
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>
using namespace std;
typedef long long ll;
int n, k;
void solve1();
int main(){
scanf("%d %d", &n, &k);
if(k==1) solve1();
}
void solve1(){
ll xMin = 1e9, xMax = -1e9, yMin = 1e9, yMax = -1e9;
for(int i=1; i<=n; i++){
ll x, y;
scanf("%lld %lld", &x, &y);
xMin = min(x, xMin), yMin = min(y, yMin);
xMax = max(x, xMax), yMax = max(y, yMax);
}
printf("%lld %lld %lld", xMin, yMin, max(xMax - xMin, yMax - yMin));
}
Compilation message (stderr)
# | 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... |