Submission #1002909

#TimeUsernameProblemLanguageResultExecution timeMemory
1002909JuanIzvanzemaljci (COI21_izvanzemaljci)C++17
0 / 100
1 ms348 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(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...