# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
744010 | jamezzz | Izvanzemaljci (COI21_izvanzemaljci) | C++17 | 36 ms | 916 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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){
}
}
컴파일 시 표준 에러 (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... |