# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
744010 | jamezzz | Izvanzemaljci (COI21_izvanzemaljci) | C++17 | 36 ms | 916 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#ifdef DEBUG
#define dbg(...) printf(__VA_ARGS__);
#else
#define dbg(...)
#endif
#define sf scanf
#define pf printf
#define fi first
#define se second
#define pb push_back
#define sz(x) (int)x.size()
#define all(x) x.begin(),x.end()
#define INF 1023456789
typedef long long ll;
typedef pair<int,int> ii;
#define maxn 300005
int n,k;
int main(){
sf("%d%d",&n,&k);
if(k==1){
int mnx=INF,mny=INF,mxx=-INF,mxy=-INF;
for(int i=0;i<n;++i){
int x,y;sf("%d%d",&x,&y);
mnx=min(mnx,x);
mxx=max(mxx,x);
mny=min(mny,y);
mxy=max(mxy,y);
}
pf("%d %d %d\n",mnx,mny,max(1,max(mxx-mnx,mxy-mny)));
}
else if(n<=12){
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |