Submission #901423

#TimeUsernameProblemLanguageResultExecution timeMemory
901423BlagojMoney (IZhO17_money)C++17
0 / 100
0 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long #define all(x) (x).begin(), (x).end() int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int a[n]; for (int i = 0; i < n; i++) cin >> a[i]; int cnt = 1; for (int i = 1; i < n; i++) { if (a[i - 1] > a[i]) cnt++; } cout << cnt; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...