답안 #804721

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
804721 2023-08-03T11:00:43 Z oviyan_gandhi Best Place (NOI17_bestplace) C++14
100 / 100
75 ms 3012 KB
#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int n; cin >> n;
  vector<int> x(n), y(n);
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  sort(x.begin(), x.end()); sort(y.begin(),  y.end());
  cout << x[n/2] << ' ' << y[n/2] << endl;
  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 256 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 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 308 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 308 KB Output is correct
7 Correct 1 ms 304 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 40 ms 1072 KB Output is correct
2 Correct 46 ms 1076 KB Output is correct
3 Correct 47 ms 980 KB Output is correct
4 Correct 45 ms 2216 KB Output is correct
5 Correct 57 ms 2228 KB Output is correct
6 Correct 47 ms 2216 KB Output is correct
7 Correct 46 ms 2176 KB Output is correct
8 Correct 55 ms 2212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 296 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 212 KB Output is correct
3 Correct 1 ms 444 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 320 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 75 ms 1080 KB Output is correct
2 Correct 70 ms 984 KB Output is correct
3 Correct 73 ms 2980 KB Output is correct
4 Correct 53 ms 2220 KB Output is correct
5 Correct 68 ms 2980 KB Output is correct
6 Correct 68 ms 2996 KB Output is correct
7 Correct 72 ms 2992 KB Output is correct
8 Correct 71 ms 3012 KB Output is correct