Submission #523274

#TimeUsernameProblemLanguageResultExecution timeMemory
523274tatoPo (COCI21_po)C++14
10 / 70
38 ms1644 KiB
#include <bits/stdc++.h>
#define ll long long

using namespace std;

void answer()
{
	int n; 
	cin >> n;
	int a[n + 1];
	
	for(int i = 1; i <= n; i++)
		cin >> a[i];
	
	int cnt = 1;
	
	for(int i = 2; i <= n; i++)
		if(a[i] > a[i-1])
			cnt++;
			
	cout << cnt;
	
	
	
}

int main()
{
	int t = 1;
	//cin >> t;
	
	while(t--)
		answer();
	
	
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...