# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1153764 | justin271828 | Po (COCI21_po) | C++20 | 22 ms | 584 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; i++) cin >> arr[i];
int ans = 0;
if (arr[0] > 0) ans++;
for (int i = 1; i < n; i++) {
if (arr[i] > arr[i-1]) ans++;
}
cout << ans;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |