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;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
vector<pair<int ,int > > v;
int n;
cin>>n;
for (int i = 0; i < n; ++i)
{
int x , y;
cin>>x>>y;
v.push_back(make_pair(x,y));
}
//cout<<v[1].first;
int x=0;
for (int i = 0; i < n; ++i)
{
x =x + v[i].first;
}
int y=0;
for (int i = 0; i < n; ++i)
{
y = y + v[i].second;
}
cout<<x/n<<" "<<y/n<<endl;
}
# | 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... |