Submission #366531

#TimeUsernameProblemLanguageResultExecution timeMemory
366531usuyusPo (COCI21_po)C++14
10 / 70
12 ms364 KiB
#include <bits/stdc++.h> #define N 200005 using namespace std; using ll = long long; int n, a, ans; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cin>>n; a = 0, ans = 0; while (n--) { int b; cin>>b; if (b > a) ans++; a = b; } cout<<ans<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...