Submission #414488

# Submission time Handle Problem Language Result Execution time Memory
414488 2021-05-30T13:24:09 Z medmdg Izvanzemaljci (COI21_izvanzemaljci) C++14
5 / 100
107 ms 3868 KB
#include <bits/stdc++.h>
#define ll  long long
#define endl    "\n"
using namespace std;
const ll M=1000000009;
struct pt{
    ll x,y;    
};
int main() {
    ll n,k;
    cin>>n>>k;
    pt a[n];
    ll lx=M,ly=M,hx=-M,hy=-M;
    for(int i=0;i<n;i++){
        cin>>a[i].x>>a[i].y;
        hx=max(hx,a[i].x);
        hy=max(hy,a[i].y);
        ly=min(ly,a[i].y);
        lx=min(lx,a[i].x);
    }
    if(k<3){
        if(k==1){
            cout<<lx<<" "<<ly<<" "<<max((ll)(1),max(hx-lx,hy-ly))<<endl;
            return 0;
        }
        /*cout<<lx<<" "<<ly<<" "<<min(hx-lx,hy-ly)<<endl;
        if(hx-lx==)*/
    }

}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 106 ms 3860 KB Output is correct
8 Correct 107 ms 3868 KB Output is correct
9 Correct 95 ms 3860 KB Output is correct
10 Correct 95 ms 3868 KB Output is correct
11 Correct 92 ms 3780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -