Submission #520614

#TimeUsernameProblemLanguageResultExecution timeMemory
520614topovikIzvanzemaljci (COI21_izvanzemaljci)C++14
5 / 100
24 ms1092 KiB
#include <bits/stdc++.h> #pragma GCC optimize("unroll-loops") #define pb push_back #define f first #define s second using namespace std; typedef long long ll; typedef long double ld; const ll oo = 1e18; const ld eps = 1e-9; const ll N = 1e3; const ll M = 6e5; const ld t = 0.9; int main() { ios_base::sync_with_stdio(0); iostream::sync_with_stdio(0); cin.tie(0); cout.tie(0); ll n, k; cin >> n >> k; ll mn[2] = {oo, oo}; ll mx[2] = {-oo, -oo}; while (n--) { for (ll i = 0; i < 2; i++) { ll x; cin >> x; mx[i] = max(mx[i], x); mn[i] = min(mn[i], x); } } cout << mn[0] << " " << mn[1] << " " << max(max(mx[0] - mn[0], mx[1] - mn[1]), 1ll); }
#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...