# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
366531 | usuyus | Po (COCI21_po) | C++14 | 12 ms | 364 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |