Submission #420546

#TimeUsernameProblemLanguageResultExecution timeMemory
420546JvThunderIzvanzemaljci (COI21_izvanzemaljci)C++14
0 / 100
1 ms204 KiB
#include <bits/stdc++.h> #define pb push_back #define mp make_pair #define fir first #define sec second typedef long long ll; using namespace std; int n,k; void solve() { cin >> n >> k; ll mnx = 1e9+7; ll mxx = 0; ll mny = 1e9+7; ll mxy = 0; for(int i=0;i<n;i++) { ll x,y; cin >> x >> y; mnx = min(mnx,x); mxx = max(mxx,x); mny = min(mny,y); mxy = max(mxy,y); } ll tmp = max(mxx-mnx,mxy-mny); cout << mnx << " " << mny << " " << tmp << endl; return; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int tc=1; //cin>>tc; for(int i=1;i<=tc;i++) solve(); 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...