Submission #98242

#TimeUsernameProblemLanguageResultExecution timeMemory
98242dalgerokProsjek (COCI18_prosjek)C++17
50 / 50
3 ms384 KiB
#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 timeMemoryGrader output
Fetching results...