제출 #659978

#제출 시각아이디문제언어결과실행 시간메모리
659978ngano_upat_naBest Place (NOI17_bestplace)C++17
3 / 100
21 ms2224 KiB
#include "bits/stdc++.h"
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    long long n;
    cin >> n;
    long long x = 0, y = 0;
    for (int i=0; i<n; i++) {
        long long a, b;
        cin >> a >> b;
        x += a;
        y += b;
    }   
    x /= n;
    y /= n;
    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...