# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
375110 | Lumos | Po (COCI21_po) | C++17 | 13 ms | 1772 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.
// minako
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define f first
#define s second
#define pb push_back
#define pii pair<int,int>
#define ll int
#define pll pair <ll,ll>
#define faster ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
const ll M = 1e9 + 7;
const int N = 6e5 + 5;
const ll INF = 1e9;
const ll INF2 = 1e18;
const int K = 5000;
ll n,a[N],cnt;
int main() {
faster
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
if (a[i] > a[i - 1]) cnt++;
}
cout << cnt;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |