#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+1;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 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 |
2 ms |
340 KB |
Output isn't correct |
5 |
Incorrect |
168 ms |
6976 KB |
Output isn't correct |
6 |
Incorrect |
185 ms |
7216 KB |
Output isn't correct |
7 |
Incorrect |
143 ms |
5956 KB |
Output isn't correct |
8 |
Incorrect |
145 ms |
5928 KB |
Output isn't correct |
9 |
Incorrect |
152 ms |
6472 KB |
Output isn't correct |
10 |
Incorrect |
155 ms |
6584 KB |
Output isn't correct |