#include<bits/stdc++.h>
#define REP(i,a,b) for(int i = a; i < b;i++)
typedef long long int ll;
using namespace std;
int main()
{
ll n,x1,y1; cin >> n;
vector<ll> x(n), y(n);
REP(i,0,n)
{
cin >> x1 >> y1;
x.push_back(x1);y.push_back(y1);
}
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 |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
3 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
58 ms |
3376 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
94 ms |
3416 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |