没有数组,该省省,该花花
#include <stdio.h>
int main()
{
int n;
while ((scanf("%d", &n)) != EOF)
{
int a, b,max = 1, len = 1;
scanf("%d", &a);
for (int i = 1; i < n; i++)
{
b = a;
scanf("%d", &a);
if (a > b)
len++;
else
len = 1;
if (len > max)
max = len;
}
printf("%d\n", max);
}
}
登录后发布评论
暂无评论,来抢沙发