Submission #532058

#TimeUsernameProblemLanguageResultExecution timeMemory
532058andecaandeciBest Place (NOI17_bestplace)C++17
3 / 100
85 ms2172 KiB
#include <bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
typedef long long ll;
using namespace std;

ll n, ansx, ansy;

int main(){
  cin >> n;
  for(int i = 0; i < n; i++){
    ll x, y; cin >> x >> y;
    ansx += x;
    ansy += y;
  }
  ansx /= n; ansy /= n;
  cout << ansx << " " << ansy << endl;
}
#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...