제출 #659979

#제출 시각아이디문제언어결과실행 시간메모리
659979ngano_upat_naBest Place (NOI17_bestplace)C++17
3 / 100
60 ms6552 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 /= (int)s.size();
    y /= (int)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...