Submission #728646

#TimeUsernameProblemLanguageResultExecution timeMemory
728646piOOEFibonacci representations (CEOI18_fib)C++17
0 / 100
0 ms212 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector<int> a(n); for (int i = 0; i < n; ++i) { cin >> a[i]; } int mx = 0; for (int i = 0; i < n; ++i) { mx = max(mx, a[i]); cout << (mx + 1) / 2 << "\n"; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...