Submission #49826

#TimeUsernameProblemLanguageResultExecution timeMemory
49826A_H_GhaznaviProsjek (COCI18_prosjek)C++14
50 / 50
3 ms812 KiB
// In the name of god // A.H.Ghaznavi #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; int n,a[30]; ld ans[30]; int main() { ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0); cin>>n; for (int i=0;i<n;i++) cin>>a[i]; sort (a, a+n); for (int i=0;i<n;i++) ans[i]=a[i]; for (int i=0;i<n-1;i++) ans[i+1]=(ans[i]+ans[i+1])/2; cout.precision(10); cout<<fixed<<ans[n-1]; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...