#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
typedef long long ll;
using namespace std;
ll n;
int main(){
cin >> n;
vector<ll>x,y;
for(int i = 0; i < n; i++){
ll a, b; cin >> a >> b;
x.pb(a);y.pb(b);
}
sort(x.begin(),x.end());
sort(y.begin(),y.end());
cout << x[n/2] << " " << y[n/2] << "\n";
}
# |
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 |
Correct |
0 ms |
204 KB |
Output is correct |
4 |
Correct |
0 ms |
204 KB |
Output is correct |
5 |
Correct |
1 ms |
204 KB |
Output is correct |
6 |
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 |
292 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 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 |
52 ms |
1988 KB |
Output is correct |
2 |
Correct |
59 ms |
2068 KB |
Output is correct |
3 |
Correct |
63 ms |
2024 KB |
Output is correct |
4 |
Correct |
54 ms |
2032 KB |
Output is correct |
5 |
Correct |
57 ms |
2048 KB |
Output is correct |
6 |
Correct |
60 ms |
2052 KB |
Output is correct |
7 |
Correct |
58 ms |
1960 KB |
Output is correct |
8 |
Correct |
67 ms |
2156 KB |
Output is correct |
# |
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 |
Correct |
0 ms |
204 KB |
Output is correct |
4 |
Correct |
0 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
204 KB |
Output is correct |
8 |
Correct |
1 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 |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 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 |
8 |
Correct |
1 ms |
204 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
86 ms |
2020 KB |
Output is correct |
2 |
Correct |
86 ms |
1972 KB |
Output is correct |
3 |
Correct |
78 ms |
2012 KB |
Output is correct |
4 |
Correct |
64 ms |
2004 KB |
Output is correct |
5 |
Correct |
92 ms |
2028 KB |
Output is correct |
6 |
Correct |
86 ms |
2064 KB |
Output is correct |
7 |
Correct |
91 ms |
2004 KB |
Output is correct |
8 |
Correct |
84 ms |
2056 KB |
Output is correct |