# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
87828 | AntonioDaki | Prosjek (COCI18_prosjek) | C++14 | 3 ms | 708 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 main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n, x[22];
double m;
cin >> n;
for(int i = 0; i < n; ++i)
cin >> x[i];
sort(x, x + n);
m = x[0];
for(int i = 1; i < n; ++i)
m = (m + x[i]) / 2;
cout << m;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |