Submission #934593

# Submission time Handle Problem Language Result Execution time Memory
934593 2024-02-27T16:25:14 Z ishat_jha Best Place (NOI17_bestplace) C++14
0 / 100
231 ms 524288 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ff first
#define ss second
 
void solvr()
{
    ll n;
    cin >> n;
    vector<ll> v(n);
    vector<ll> b(n);
    for(ll i = 0; i < n; i++)
    {
        cin >> v[i];
        cin >> b[i];
    }
    sort(v.begin(), v.end());
    sort(b.begin(), b.end());
    cout << v[n/2] << " " << b[n/2] << endl;
}
 
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	long long int t = 1;
	cin >> t;
	while(t--)
	{
		solvr();
	}
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 604 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 231 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Expected EOF
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 164 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 153 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -