제출 #685605

#제출 시각아이디문제언어결과실행 시간메모리
685605ngano_upat_naBest Place (NOI17_bestplace)C++17
3 / 100
65 ms8496 KiB
#include "bits/stdc++.h" using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long long n; cin >> n; set<pair<long long,long long>> s; long long x = 0, y = 0; for (int i=0; i<n; i++) { long long a, b; cin >> a >> b; s.insert({a,b}); } for (auto &e:s) { x += e.first; y += e.second; } x /= (long long)s.size(); y /= (long long)s.size(); cout << x << ' ' << y; }
#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...