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 (){
int n,cem=0,cem1=0;
cin>>n;
for(int i=0;i<n;++i){
int x,y;
cin>>x>>y;
cem+=x;
cem1+=y;
}
if(cem%n!=0){
cout<<cem/n+1<<" ";
}
else{
cout<<cem/n<<" ";
}
if(cem1%n!=0){
cout<<cem1/n+1<<" ";
}
else{
cout<<cem1/n<<" ";
}
}
# | 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... |