# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
98242 | dalgerok | Prosjek (COCI18_prosjek) | C++17 | 3 ms | 384 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(){
int n;
cin >> n;
double a[n];
for(int i = 0; i < n; i++){
cin >> a[i];
}
sort(a, a + n);
double ans = a[0];
for(int i = 0; i < n; i++){
ans = (ans + a[i]) / 2.0;
}
cout << fixed << setprecision(9) << ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |