# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1112376 | vjudge1 | Baloni (COCI15_baloni) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,s=1;
cin>>n;
int h[n];
for(int i=0;i<n;i++)
cin>>h[n];
for(int i=1;i<n;i++){
if(h[i-1]<h[i])
s++
}
cout<<s;
}