#include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
int a[n]; for(int i = 0; i < n; i++) cin >> a[i];
int ans = 0;
for(int i = 0; i < n - 1; i++) if(a[i] < a[i + 1]) ans++;
cout << ans << '\n';
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
3 ms |
212 KB |
Output isn't correct |
5 |
Incorrect |
179 ms |
3368 KB |
Output isn't correct |
6 |
Incorrect |
174 ms |
3752 KB |
Output isn't correct |
7 |
Incorrect |
139 ms |
3132 KB |
Output isn't correct |
8 |
Incorrect |
162 ms |
3148 KB |
Output isn't correct |
9 |
Incorrect |
153 ms |
3264 KB |
Output isn't correct |
10 |
Incorrect |
155 ms |
3376 KB |
Output isn't correct |