# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1239394 | lunarecho | Baloni (COCI15_baloni) | C++20 | 38 ms | 7236 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin>>n;
vector<ll> h(n);
for(auto &it : h)
{
cin>>it;
}
int ans = 1;
for(int i=1;i<n;++i)
{
if(h[i-1] < h[i])
++ans;
}
cout<<ans<<'\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |