제출 #914254

#제출 시각아이디문제언어결과실행 시간메모리
914254kabgoyProsjek (COCI18_prosjek)C++17
50 / 50
1 ms436 KiB
#include <bits/stdc++.h>
using namespace std;

int
main(void)
{
	int n;
	cin >> n;
	vector<int> a(n);
	for(int i = 0; i < n; i++)
		cin >> a[i];
	sort(a.begin(), a.end());
	double ans = a[0];
	for(int i = 1; i < n; i++)
		ans = (ans+a[i])/2.0;
	cout << setprecision(6) << fixed << ans << '\n';
}
#Verdict Execution timeMemoryGrader output
Fetching results...