답안 #420540

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
420540 2021-06-08T12:29:40 Z JvThunder Izvanzemaljci (COI21_izvanzemaljci) C++14
0 / 100
1 ms 204 KB
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fir first
#define sec second
typedef long long ll;

using namespace std;

int n,k;
void solve()
{
    cin >> n >> k;
    int mnx = 1e9+7;
    int mxx = 0;
    int mny = 1e9+7;
    int mxy = 0;
    for(int i=0;i<n;i++)
    {
        int x,y;
        cin >> x >> y;
        mnx = min(mnx,x);
        mxx = max(mxx,x);
        mny = min(mny,y);
        mxy = max(mxy,y);
    }
    cout << mnx << " " << mny << " " << max(mxx-mnx,mxy-mny) << endl;
	return;
}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	int tc=1;
	//cin>>tc;
	for(int i=1;i<=tc;i++) solve();
 	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -