# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
596415 | Sofiatpc | Prosjek (COCI18_prosjek) | C++14 | 1 ms | 256 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;
const int MAXN = 25;
int x[MAXN];
int main()
{
int N; cin>>N;
for(int i = 1; i <= N; i++)cin>>x[i];
sort(x+1,x+N+1);
double ans = x[1];
for(int i = 2; i <= N; i++)ans=(ans+double(x[i]))/2;
cout<<fixed<<setprecision(6)<<ans<<"\n";
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |