Submission #87819

#TimeUsernameProblemLanguageResultExecution timeMemory
87819AntonioDakiProsjek (COCI18_prosjek)C++14
5 / 50
3 ms820 KiB
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); float n, x[22], m = 0; cin >> n; cin >> x[0]; for(int i = 1; i < n; ++i){ cin >> x[i]; x[i] = (x[i] + x[i - 1]) / 2; if(x[i] > m) m = x[i]; } cout << m; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...