# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
594429 | daisy2 | Prosjek (COCI18_prosjek) | C++14 | 1 ms | 212 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<iostream>
#include<algorithm>
#include<iomanip>
using namespace std;
int n;
double a[50];
int main()
{
cout<<fixed<<setprecision(6)<<endl;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
sort(a,a+n);
double pr=a[0];
for(int i=1;i<n;i++)
{
pr=(pr+a[i])/2;
}
cout<<pr<<endl;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |