#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
//ll t; cin >> t;
//REP(i,0,t-1){
//
//}
int n;cin >> n;
vector<int> x(n);
vector<int> 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];
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
312 KB |
Output is correct |
3 |
Correct |
0 ms |
296 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
0 ms |
312 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
312 KB |
Output is correct |
4 |
Correct |
1 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
312 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
312 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
22 ms |
2112 KB |
Output is correct |
2 |
Correct |
22 ms |
2232 KB |
Output is correct |
3 |
Correct |
22 ms |
2244 KB |
Output is correct |
4 |
Correct |
18 ms |
2220 KB |
Output is correct |
5 |
Correct |
19 ms |
2244 KB |
Output is correct |
6 |
Correct |
22 ms |
2240 KB |
Output is correct |
7 |
Correct |
27 ms |
2096 KB |
Output is correct |
8 |
Correct |
21 ms |
2244 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
308 KB |
Output is correct |
2 |
Correct |
0 ms |
324 KB |
Output is correct |
3 |
Correct |
0 ms |
204 KB |
Output is correct |
4 |
Correct |
0 ms |
332 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
0 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
312 KB |
Output is correct |
8 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
332 KB |
Output is correct |
3 |
Correct |
1 ms |
332 KB |
Output is correct |
4 |
Correct |
1 ms |
324 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
332 KB |
Output is correct |
7 |
Correct |
1 ms |
332 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
38 ms |
2996 KB |
Output is correct |
2 |
Correct |
33 ms |
3020 KB |
Output is correct |
3 |
Correct |
23 ms |
3012 KB |
Output is correct |
4 |
Correct |
30 ms |
2232 KB |
Output is correct |
5 |
Correct |
42 ms |
3004 KB |
Output is correct |
6 |
Correct |
39 ms |
3012 KB |
Output is correct |
7 |
Correct |
32 ms |
3004 KB |
Output is correct |
8 |
Correct |
34 ms |
3000 KB |
Output is correct |