# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1277654 | turnkeyone | Prosjek (COCI18_prosjek) | C++20 | 1 ms | 576 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
double n; cin >> n;
vector <double> f (n);
for (int i=0; i<n; i++) cin >> f[i];
sort(f.begin(),f.end());
double p=f[0];
for (int i=1; i<n; i++) {
p=(p+f[i])/2;
}
cout << fixed << setprecision(6) << p << endl;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |