# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
489544 | mychecksedad | Baloni (COCI15_baloni) | C++17 | 57 ms | 7212 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>
using namespace std;
const int N = 1e6;
int n, arr[N];
int main(){
cin.tie(0); ios::sync_with_stdio(0);
cin >> n;
for(int i = 0; i < n; ++i) cin >> arr[i];
int ans = 1;
for(int i = 0; i < n-1; ++i) if(arr[i] < arr[i + 1]) ++ans;
cout << ans;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |