# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
693853 | 79brue | Izvanzemaljci (COI21_izvanzemaljci) | C++17 | 1 ms | 212 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n, k;
void solve1();
int main(){
scanf("%d %d", &n, &k);
if(k==1) solve1();
}
void solve1(){
ll xMin = 1e9, xMax = -1e9, yMin = 1e9, yMax = -1e9;
for(int i=1; i<=n; i++){
ll x, y;
scanf("%lld %lld", &x, &y);
xMin = min(x, xMin), yMin = min(y, yMin);
xMax = max(x, xMax), yMax = max(y, yMax);
}
printf("%lld %lld %lld", xMin, yMin, max(xMax - xMin, yMax - yMin));
}
컴파일 시 표준 에러 (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... |