# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
132190 | robs | Prosjek (COCI18_prosjek) | C++14 | 2 ms | 380 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=7654321;
int n;
float v[maxn];
int main(){
scanf("%d",&n);
for(int x=0;x<n;x++){
scanf("%f",&v[x]);
}
sort(v,v+n);
for(int x=1;x<n;x++){
v[x]=(v[x]+v[x-1])/2;
}
printf("%.6f",v[n-1]);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |