Submission #710049

#TimeUsernameProblemLanguageResultExecution timeMemory
710049penguin133Money (IZhO17_money)C++17
0 / 100
0 ms316 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; int A[n+1], ans = 0; for(int i=1;i<=n;i++){ cin >> A[i]; if(i > 1 && A[i] < A[i-1])ans++; } cout << ans + 1 << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...