Submission #770551

#TimeUsernameProblemLanguageResultExecution timeMemory
770551RafaelMRCProsjek (COCI18_prosjek)C++14
50 / 50
2 ms304 KiB
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int vals[N]; for(int i = 0; i < N; i++){ cin >> vals[i]; } std::sort(vals,vals+N); double a = (double)vals[0]; int i = 1; while(i<N){ a = (a + vals[i])/2; i++; } cout << a; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...