Submission #1002711

#TimeUsernameProblemLanguageResultExecution timeMemory
1002711gabistroehIzvanzemaljci (COI21_izvanzemaljci)C++14
0 / 100
1 ms348 KiB
#include<bits/stdc++.h> using namespace std; int inf = 3*(1e9 + 10); int main(){ int n, k; cin >> n >> k; int maxx = 0, maxy = 0, minx = inf, miny = inf; for(int i=0; i<n; i++){ int x, y; cin >> x >> y; minx = min(x, minx); miny = min(y, miny); maxx = max(x, maxx); maxy = max(y, maxy); } int l = max(maxx-minx, maxy-miny); cout << minx << " " << miny << " " << l; }

Compilation message (stderr)

izvanzemaljci.cpp:4:12: warning: overflow in conversion from 'double' to 'int' changes value from '3.00000003e+9' to '2147483647' [-Woverflow]
    4 | int inf = 3*(1e9 + 10);
      |           ~^~~~~~~~~~~
#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...