Submission #594429

#TimeUsernameProblemLanguageResultExecution timeMemory
594429daisy2Prosjek (COCI18_prosjek)C++14
50 / 50
1 ms212 KiB
#include<iostream> #include<algorithm> #include<iomanip> using namespace std; int n; double a[50]; int main() { cout<<fixed<<setprecision(6)<<endl; cin>>n; for(int i=0;i<n;i++) { cin>>a[i]; } sort(a,a+n); double pr=a[0]; for(int i=1;i<n;i++) { pr=(pr+a[i])/2; } cout<<pr<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...