首先必须吐槽Windows,咱也不知道是TDM-GCC的毛病还是Windows抽风,本地编译版本死活打不开……
就算打开了也没办法输入输出,CPU连动都不动……一会就闪退了
消灭Windows暴政世界属于Linux

#include<iostream>
using namespace std;
int main(){
int a,max,ans=1,temp[1000000];
cin>>a;
for(int i=1;i<=a;i++){
cin>>temp[i];
if(i>=2){
if(temp[i]>temp[i-1]){
ans++;
if(ans>max){
max=ans;
}
}else if(temp[i]<temp[i-1]){
ans=1;
}
}
}
cout<<max<<endl;
return 0;
}
欢迎加入 #archlinux-cn / #archlinux-cn @ freenode