# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
770551 | RafaelMRC | Prosjek (COCI18_prosjek) | C++14 | 2 ms | 304 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |