#include <bits/stdc++.h>
using namespace std;
const int N = 1e6;
int n, arr[N];
int main(){
cin.tie(0); ios::sync_with_stdio(0);
cin >> n;
for(int i = 0; i < n; ++i) cin >> arr[i];
int ans = 1;
for(int i = 0; i < n-1; ++i) if(arr[i] < arr[i + 1]) ++ans;
cout << ans;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
208 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
5 |
Incorrect |
52 ms |
6932 KB |
Output isn't correct |
6 |
Incorrect |
52 ms |
7212 KB |
Output isn't correct |
7 |
Incorrect |
44 ms |
5972 KB |
Output isn't correct |
8 |
Incorrect |
42 ms |
5936 KB |
Output isn't correct |
9 |
Incorrect |
50 ms |
6448 KB |
Output isn't correct |
10 |
Incorrect |
57 ms |
6484 KB |
Output isn't correct |