Submission #423664

# Submission time Handle Problem Language Result Execution time Memory
423664 2021-06-11T11:03:28 Z aymane7 Izvanzemaljci (COI21_izvanzemaljci) C++17
5 / 100
33 ms 2340 KB
#include<bits/stdc++.h>
#pragma GCC optimize("O2")
#define deb(x) cout << #x << " = " << x <<endl
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define all(c) c.begin(), c.end()
#define endl "\n"
#define sz(u) (int)(u.size())
#define L(x)(2*x)
#define R(x)(2*x+1)
#define M(x,y)((x+y)/2)
#define int long long
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
void solve(){
    int n,k;
    cin>>n>>k;
    int mnx=1e16,mny=1e16,mxx=-1e16,mxy=-1e16;
    for(int i=0;i<n;i++){
        int x,y;
        cin>>x>>y;
        mxx=max(mxx,x);
        mxy=max(mxy,y);
        mnx=min(mnx,x);
        mny=min(mny,y);
    }
    cout<<mnx<<" "<<mny<<" "<<max({mxx-mnx,mxy-mny,1LL});
}
signed main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    solve();
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 312 KB Output is correct
4 Correct 0 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 29 ms 2248 KB Output is correct
8 Correct 27 ms 2204 KB Output is correct
9 Correct 29 ms 2328 KB Output is correct
10 Correct 28 ms 2340 KB Output is correct
11 Correct 33 ms 2244 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 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 -