#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll N;
cin>>N;
vector <ll>x;
vector <ll>y;
for(ll i=0;i<N;i++){
ll a,b;
cin>>a>>b;
x.push_back(a);
y.push_back(b);
}
sort(x.begin(), x.end());
sort(y.begin(), y.end());
ll c=(N-1)/2;
cout<<x[c]<<" "<<y[c]<<"\n";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
0 ms |
272 KB |
Output is correct |
3 |
Correct |
1 ms |
292 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
292 KB |
Output is correct |
6 |
Correct |
1 ms |
332 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 |
284 KB |
Output is correct |
4 |
Correct |
1 ms |
296 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
68 ms |
3128 KB |
Output is correct |
2 |
Correct |
65 ms |
3216 KB |
Output is correct |
3 |
Correct |
62 ms |
3212 KB |
Output is correct |
4 |
Correct |
57 ms |
3136 KB |
Output is correct |
5 |
Correct |
64 ms |
3116 KB |
Output is correct |
6 |
Correct |
78 ms |
3124 KB |
Output is correct |
7 |
Correct |
59 ms |
3120 KB |
Output is correct |
8 |
Correct |
67 ms |
3148 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
296 KB |
Output is correct |
2 |
Correct |
0 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
288 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 |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
256 KB |
Output is correct |
8 |
Correct |
0 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
304 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
332 KB |
Output is correct |
4 |
Correct |
1 ms |
328 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
332 KB |
Output is correct |
7 |
Correct |
1 ms |
308 KB |
Output is correct |
8 |
Correct |
1 ms |
308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
99 ms |
3980 KB |
Output is correct |
2 |
Correct |
93 ms |
3880 KB |
Output is correct |
3 |
Correct |
82 ms |
3992 KB |
Output is correct |
4 |
Correct |
76 ms |
3244 KB |
Output is correct |
5 |
Correct |
85 ms |
3996 KB |
Output is correct |
6 |
Correct |
88 ms |
3920 KB |
Output is correct |
7 |
Correct |
88 ms |
3912 KB |
Output is correct |
8 |
Correct |
90 ms |
3888 KB |
Output is correct |