Submission #697499

# Submission time Handle Problem Language Result Execution time Memory
697499 2023-02-10T06:56:48 Z Sandarach151 Best Place (NOI17_bestplace) C++17
100 / 100
46 ms 3048 KB
#include<bits/stdc++.h>
using namespace std;

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int n;
	cin >> n;
	int arr1[n];
	int arr2[n];
	for(int i=0; i<n; i++){
		cin >> arr1[i] >> arr2[i];
	}
	sort(arr1, arr1+n);
	sort(arr2, arr2+n);
	int temp = n/2;
	cout << arr1[temp] << ' ' << arr2[temp];
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Correct 0 ms 320 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 0 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 328 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 340 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 332 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 2132 KB Output is correct
2 Correct 24 ms 2124 KB Output is correct
3 Correct 21 ms 2120 KB Output is correct
4 Correct 17 ms 2260 KB Output is correct
5 Correct 21 ms 2236 KB Output is correct
6 Correct 21 ms 2124 KB Output is correct
7 Correct 21 ms 2172 KB Output is correct
8 Correct 23 ms 2240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 248 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 320 KB Output is correct
7 Correct 1 ms 232 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 1 ms 340 KB Output is correct
7 Correct 2 ms 340 KB Output is correct
8 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 40 ms 3016 KB Output is correct
2 Correct 46 ms 3008 KB Output is correct
3 Correct 26 ms 2996 KB Output is correct
4 Correct 33 ms 2260 KB Output is correct
5 Correct 46 ms 3012 KB Output is correct
6 Correct 40 ms 3048 KB Output is correct
7 Correct 39 ms 3016 KB Output is correct
8 Correct 43 ms 2996 KB Output is correct