# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
382806 | Sashuk_keshuk | Po (COCI21_po) | C++14 | 42 ms | 748 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.
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 228;
int n, a[N];
int main(){
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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |