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 x; cin>>x; int s; vector<int>q(0,x);
for(int o=0;o<x;o++){ int z; cin>>z; q.push_back(z); }
sort(q.begin(),q.end()); s=q[0];
for(int o=1;o<x;o++){s=(s+q[o])/2; }
cout<<s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |