Submission #489544

#TimeUsernameProblemLanguageResultExecution timeMemory
489544mychecksedadBaloni (COCI15_baloni)C++17
0 / 100
57 ms7212 KiB
#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 timeMemoryGrader output
Fetching results...