#include<bits/stdc++.h>
#define ios ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define ff first
#define ss second
using namespace std;
const int N=3*1e5+7;
ll a[N];
int main()
{
ll n;
cin >> n;
for (int i=1;i<=n;i++){
cin >> a[i];
}
ll ans=1;
for (int i=1;i<n;i++){
if (a[i] < a[i+1]) ans++;
}
cout << ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
308 KB |
Output isn't correct |
5 |
Runtime error |
67 ms |
6708 KB |
Execution killed with signal 11 |
6 |
Runtime error |
67 ms |
6668 KB |
Execution killed with signal 11 |
7 |
Runtime error |
64 ms |
6500 KB |
Execution killed with signal 11 |
8 |
Runtime error |
75 ms |
6464 KB |
Execution killed with signal 11 |
9 |
Runtime error |
64 ms |
6624 KB |
Execution killed with signal 11 |
10 |
Runtime error |
62 ms |
6544 KB |
Execution killed with signal 11 |