Submission #731786

#TimeUsernameProblemLanguageResultExecution timeMemory
731786maeolaBest Place (NOI17_bestplace)C++17
100 / 100
35 ms1428 KiB
// trans rights #include <bits/stdc++.h> using namespace std; using ll = long long; using base = complex<double>; int main(int argc, const char *argv[]) { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; vector<int> xs, ys; for (int i = 0; i < N; i++) { int x, y; cin >> x >> y; xs.push_back(x); ys.push_back(y); } sort(xs.begin(), xs.end()); sort(ys.begin(), ys.end()); cout << xs[N/2] << ' ' << ys[N/2]; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...