Submission #1112438

#TimeUsernameProblemLanguageResultExecution timeMemory
1112438vjudge1Baloni (COCI15_baloni)C++17
0 / 100
40 ms7248 KiB
#include <bits/stdc++.h> #define int long long using namespace std; int32_t main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; vector<int> v(n); for(int i=0;i<n;i++){ cin >> v[i]; } int ans=1; for(int i=1;i<n;i++){ if(v[i]<v[i-1])continue; ans++; } cout << ans << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...