https://www.luogu.org/problem/P1567
#include <iostream>
using namespace std;
int array[1000000] = {0};
int main(void)
{
int n;
cin>>n;
for(int i = 0; i < n; i++)
{
cin>>array[i];
}
int maxLen = 1;
int len = 1;
int iLast = array[0];
for(int i = 1; i < n; i++)
{
if(array[i]>iLast)
{
++len;
}
else
{
if(len>maxLen)
maxLen=len;
len=1;
}
iLast=array[i];
}
cout << maxLen<<endl;
}