Submission #382807

#TimeUsernameProblemLanguageResultExecution timeMemory
382807Sashuk_keshukPo (COCI21_po)C++14
10 / 70
12 ms748 KiB
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 228; int n, a[N]; int main(){ cin.tie(0); cout.tie(0); iostream::sync_with_stdio(false); ios_base::sync_with_stdio(false); cin >> n; for (int i = 1; i <= n; i++) cin >> a[i]; a[0] = 0; int kol = 0; for (int i = 1; i <= n; i++) if (a[i] > a[i - 1]) kol++; cout << kol; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...