# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
931220 | hugsfromadicto | Mean (info1cup19_mean) | C++14 | 0 ms | 348 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.
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define int long long
using namespace std;
const int M = 1e18;
const int mxN = 205;
int a[mxN];
void _()
{
int n;
cin >> n;
for(int i = 0; i < n; ++i)
cin >> a[i];
int sm = a[0];
for(int i = 1; i < n; ++i)
{
sm = (a[i] + sm) / 2;
}
cout << sm;
}
main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int tc = 1;
//cin>>tc;
while(tc--)
{
_();
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |