This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
// Added
#define True true
#define False false
#define endl "\n"
void solve() {
ll n;
cin >> n;
vector<pair<ll, ll>> co(n);
for (ll i = 0; i < n; ++i) cin >> co[i].first >> co[i].second;
ll tx = 0, ty = 0;
for (ll i = 0; i < n; ++i) {
tx += co[i].first;
ty += co[i].second;
}
cout << tx/n << " " << ty/n << endl;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
// int t;
solve();
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |