답안 #674911

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
674911 2022-12-26T14:20:54 Z QwertyPi Best Place (NOI17_bestplace) C++14
100 / 100
91 ms 3244 KB
#include <bits/stdc++.h>

using namespace std;

int main(){
	int n; cin >> n;
	vector<int> x, y;
	for(int i = 0; i < n; i++){
		int _x, _y; cin >> _x >> _y;
		x.push_back(_x);
		y.push_back(_y);
	} 
	sort(x.begin(), x.end());
	sort(y.begin(), y.end());
	cout << x[n / 2] << ' ' << y[n / 2] << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 296 KB Output is correct
5 Correct 1 ms 304 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 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 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 53 ms 2256 KB Output is correct
2 Correct 63 ms 2332 KB Output is correct
3 Correct 61 ms 2356 KB Output is correct
4 Correct 57 ms 2388 KB Output is correct
5 Correct 58 ms 2428 KB Output is correct
6 Correct 61 ms 2400 KB Output is correct
7 Correct 58 ms 2368 KB Output is correct
8 Correct 61 ms 2392 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 304 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 2 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 90 ms 3224 KB Output is correct
2 Correct 88 ms 3220 KB Output is correct
3 Correct 79 ms 3244 KB Output is correct
4 Correct 66 ms 2460 KB Output is correct
5 Correct 88 ms 3232 KB Output is correct
6 Correct 89 ms 3208 KB Output is correct
7 Correct 91 ms 3136 KB Output is correct
8 Correct 89 ms 3196 KB Output is correct