Submission #168555

#TimeUsernameProblemLanguageResultExecution timeMemory
168555muhi1112Prosjek (COCI18_prosjek)C++17
50 / 50
2 ms504 KiB
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define f1 first #define s2 second #define pb push_back #define mp make_pair #define ll long long #define fri(a) freopen(a,"r",stdin); #define fro(a) freopen(a,"w",stdout); const int N=1e5+5; int n; double dizi[N]; int main(){ //fri("in.txt"); //fro("out.txt"); ios_base::sync_with_stdio(false); cin.tie(NULL); cin>>n; for(int i=0;i<n;i++){ cin>>dizi[i]; } sort(dizi,dizi+n); for(int i=1;i<n;i++){ dizi[i]=(dizi[i]+dizi[i-1])/2.0; } printf("%lf",dizi[n-1]); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...