# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
84511 | MatesV13 | Prosjek (COCI18_prosjek) | C++11 | 2 ms | 604 KiB |
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 n, x;
multiset<int> s;
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n;
for (int i=0;i<n;i++){
cin >> x;
s.insert(x);
}
set<int> :: iterator it = s.begin();
double a = *it;
for (int i=0;i<n;i++){
a = (a + *it)/2;
it++;
}
cout << a;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |