0分求助
查看原帖
0分求助
1059639
_is_laofang_楼主2024/3/8 20:34
#include<bits/stdc++.h>
using namespace std;
int main(){
	int cnt=1,temp,temp2,c=0,max_c=-1;
	cin>>temp2;
	while(cin>>temp){
		if(cin.get()=='\n')break;
		if(temp>temp2){
			cnt++;
			max_c=max(c,max_c);
			c=0;
		}
		c++;
		temp2=temp;
	}
	cout<<max_c<<endl<<cnt;
	return 0;
}
2024/3/8 20:34
加载中...