#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
ll n;
cin>>n;
ll arr[n];
ll ar[n];
for(ll i=0; i<n; i++)
{
cin>>arr[i] >>ar[i];
}
sort(arr, arr+n);
sort(ar, ar+n);
cout<<arr[n/2] <<" " <<ar[n/2];
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
304 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
304 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
304 KB |
Output is correct |
4 |
Correct |
1 ms |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
312 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
71 ms |
2892 KB |
Output is correct |
2 |
Correct |
67 ms |
3004 KB |
Output is correct |
3 |
Correct |
62 ms |
2988 KB |
Output is correct |
4 |
Correct |
63 ms |
2976 KB |
Output is correct |
5 |
Correct |
62 ms |
3004 KB |
Output is correct |
6 |
Correct |
62 ms |
3008 KB |
Output is correct |
7 |
Correct |
77 ms |
2940 KB |
Output is correct |
8 |
Correct |
108 ms |
2976 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
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 |
212 KB |
Output is correct |
5 |
Correct |
1 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
312 KB |
Output is correct |
2 |
Correct |
3 ms |
212 KB |
Output is correct |
3 |
Correct |
1 ms |
332 KB |
Output is correct |
4 |
Correct |
3 ms |
332 KB |
Output is correct |
5 |
Correct |
2 ms |
316 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
2 ms |
212 KB |
Output is correct |
8 |
Correct |
2 ms |
340 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
96 ms |
3748 KB |
Output is correct |
2 |
Correct |
88 ms |
3876 KB |
Output is correct |
3 |
Correct |
96 ms |
3752 KB |
Output is correct |
4 |
Correct |
72 ms |
3068 KB |
Output is correct |
5 |
Correct |
92 ms |
3884 KB |
Output is correct |
6 |
Correct |
94 ms |
3748 KB |
Output is correct |
7 |
Correct |
97 ms |
3744 KB |
Output is correct |
8 |
Correct |
121 ms |
3744 KB |
Output is correct |