Submission #532141

# Submission time Handle Problem Language Result Execution time Memory
532141 2022-03-02T07:30:45 Z andecaandeci Best Place (NOI17_bestplace) C++17
100 / 100
106 ms 3436 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long
vector<int> x, y;
int n;
int main() {
  cin >> n;
  for(int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    x.push_back(a);
    y.push_back(b);
  }
  sort(x.begin(), x.end());
  sort(y.begin(), y.end());
  int mid = n/2;
  cout << x[mid] << " " << y[mid] << endl;
}




# Verdict Execution time Memory Grader output
1 Correct 1 ms 280 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 0 ms 204 KB Output is correct
6 Correct 0 ms 296 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 300 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 67 ms 2332 KB Output is correct
2 Correct 63 ms 2360 KB Output is correct
3 Correct 66 ms 2352 KB Output is correct
4 Correct 59 ms 2412 KB Output is correct
5 Correct 72 ms 2436 KB Output is correct
6 Correct 66 ms 2388 KB Output is correct
7 Correct 61 ms 2288 KB Output is correct
8 Correct 74 ms 2444 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 288 KB Output is correct
3 Correct 0 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 1 ms 300 KB Output is correct
2 Correct 1 ms 320 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 2 ms 304 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 103 ms 3436 KB Output is correct
2 Correct 88 ms 3136 KB Output is correct
3 Correct 80 ms 3124 KB Output is correct
4 Correct 90 ms 2400 KB Output is correct
5 Correct 88 ms 3224 KB Output is correct
6 Correct 93 ms 3240 KB Output is correct
7 Correct 106 ms 3216 KB Output is correct
8 Correct 97 ms 3128 KB Output is correct