Submission #475177

#TimeUsernameProblemLanguageResultExecution timeMemory
475177Ahmed57Po (COCI21_po)C++14
10 / 70
44 ms1076 KiB
#include <bits/stdc++.h> using namespace std; int main() { long long n,ans = 0; cin>>n; vector<long long>arr(n); for(int i=0;i<n;i++){ cin>>arr[i]; if(i&&arr[i]>arr[i-1])ans++; } cout<<ans+1<<"\n"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...