# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
506094 | MurotY | Baloni (COCI15_baloni) | C++14 | 75 ms | 6708 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>
#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;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |