Submission #770531

#TimeUsernameProblemLanguageResultExecution timeMemory
770531123Prosjek (COCI18_prosjek)C++14
50 / 50
1 ms212 KiB
#include <bits/stdc++.h> using namespace std; int g[50]; int main() { int n; cin>> n; for(int i=0;i<n;i++){ cin>> g[i]; } sort(g,g+n); double d=g[0]; for(int i=1;i<n;i++){ d=(d+g[i])/2; } printf("%.7lf",d); }
#Verdict Execution timeMemoryGrader output
Fetching results...