# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
74989 | Lawliet | Prosjek (COCI18_prosjek) | C++14 | 3 ms | 632 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>
#define MAX 25
using namespace std;
int n,v[MAX];
double resp;
int main()
{
scanf("%d",&n);
for(int g = 0 ; g < n ; g++) scanf("%d",&v[g]);
sort(v,v+n);
resp = v[0];
for(int g = 1 ; g < n ; g++) resp = (resp + v[g])/2;
printf("%.6f",resp);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |