답안 #744010

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
744010 2023-05-18T07:10:19 Z jamezzz Izvanzemaljci (COI21_izvanzemaljci) C++17
5 / 100
36 ms 916 KB
#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

izvanzemaljci.cpp: In function 'int main()':
izvanzemaljci.cpp:25:4: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   25 |  sf("%d%d",&n,&k);
      |    ^
izvanzemaljci.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   29 |    int x,y;sf("%d%d",&x,&y);
      |              ^
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 300 KB Output is correct
3 Correct 1 ms 296 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 27 ms 868 KB Output is correct
8 Correct 32 ms 840 KB Output is correct
9 Correct 23 ms 916 KB Output is correct
10 Correct 24 ms 844 KB Output is correct
11 Correct 36 ms 844 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int64 expected
2 Halted 0 ms 0 KB -