Submission #506094

#TimeUsernameProblemLanguageResultExecution timeMemory
506094MurotYBaloni (COCI15_baloni)C++14
0 / 100
75 ms6708 KiB
#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 timeMemoryGrader output
Fetching results...