# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
420469 | Nicholas_Patrick | Izvanzemaljci (COI21_izvanzemaljci) | C++17 | 38 ms | 3100 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <queue>
#include <algorithm>
using namespace std;
struct point{
int x, y;
};
struct capture{
int x, y, l;
};
vector<int> solution;
int solve(vector<point>& points, int k){
return 0;
}
int main(){
int n, k;
scanf("%d%d", &n, &k);
if(k==1){
vector<int> x(n), y(n);
for(int i=n; i--;)
scanf("%d%d", &x[i], &y[i]);
int xmin=*min_element(x.begin(), x.end());
int xmax=*max_element(x.begin(), x.end());
int ymin=*min_element(y.begin(), y.end());
int ymax=*max_element(y.begin(), y.end());
int l=max(1, max(xmax-xmin, ymax-ymin));
printf("%d %d %d\n", xmin, ymin, l);
}else if(k==2){
}else if(k==3){
}
}
컴파일 시 표준 에러 (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... |