Submission #423627

#TimeUsernameProblemLanguageResultExecution timeMemory
423627aymane7Izvanzemaljci (COI21_izvanzemaljci)C++17
0 / 100
1 ms332 KiB
#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=0,mxy=0; 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); } signed main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); solve(); }
#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...