Submission #1002918

#TimeUsernameProblemLanguageResultExecution timeMemory
1002918JuanIzvanzemaljci (COI21_izvanzemaljci)C++17
5 / 100
51 ms2388 KiB
#include<bits/stdc++.h> using namespace std; #define int long long #define pb push_back #define pii pair<int,int> const int INF = 0x3f3f3f3f; signed main(){ int n,k; cin >> n >> k; int left=INF,right=-INF,up=-INF,down=INF; for(int i=0; i<n; i++){ int a,b; cin >> a >> b; left = min(left,a); right = max(right,a); up = max(up,b); down = min(down,b); } cout << left << " " << down << " " << max({1LL,right-left, up-down}) << '\n'; }
#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...