#include<bits/stdc++.h>
using namespace std;
int main(){
int n,cnt=0;;
cin>>n;
vector<int> v(n);
for(int i=0 ; i<n ; i++) cin>>v[i];
for(int i=0 ; i<n ; i++){
if(v[i]<v[i+1]) cnt++;
}
cout<<cnt;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
2 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
212 KB |
Output isn't correct |
5 |
Incorrect |
168 ms |
3388 KB |
Output isn't correct |
6 |
Incorrect |
172 ms |
3764 KB |
Output isn't correct |
7 |
Incorrect |
147 ms |
3164 KB |
Output isn't correct |
8 |
Incorrect |
144 ms |
3112 KB |
Output isn't correct |
9 |
Incorrect |
151 ms |
3284 KB |
Output isn't correct |
10 |
Incorrect |
151 ms |
3412 KB |
Output isn't correct |