# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
79737 |
2018-10-15T19:25:10 Z |
igzi |
Prosjek (COCI18_prosjek) |
C++17 |
|
3 ms |
712 KB |
#include <bits/stdc++.h>
using namespace std;
int n,i;
double a[25];
int main()
{
cin>>n;
for(i=0;i<n;i++) cin>>a[i];
sort(a,a+n);
for(i=0;i<n-1;i++) a[i+1]=(a[i]+a[i+1])/2;
cout<<a[n-1]<<endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
3 ms |
444 KB |
Output is correct |
3 |
Correct |
2 ms |
712 KB |
Output is correct |
4 |
Correct |
2 ms |
712 KB |
Output is correct |
5 |
Correct |
2 ms |
712 KB |
Output is correct |
6 |
Correct |
2 ms |
712 KB |
Output is correct |
7 |
Correct |
2 ms |
712 KB |
Output is correct |
8 |
Correct |
2 ms |
712 KB |
Output is correct |
9 |
Correct |
2 ms |
712 KB |
Output is correct |
10 |
Correct |
2 ms |
712 KB |
Output is correct |