小清笑ing


私信TA

用户名:dotcpp0699948

访问量:2444

签 名:

等  级
排  名 902
经  验 3486
参赛次数 1
文章发表 93
年  龄 14
在职情况 学生
学  校 滑稽粉丝团
专  业 摸鱼

  自我简介:

解题思路:

注意事项:

参考代码:

#include<bits/stdc++.h>

using namespace std;

int main(){

int a,b,c,d=0,e=0,res=0;

cin>>a;

for(int i=1;i<=a;i++){

cin>>b>>c;

if(b>=90&&b<=140&&c>=60&&c<=90){

d++;

res=max(res,d);

}

else{

d=0;

}

}

cout<<res;

    return 0;

}


 

0.0分

0 人评分

  评论区

  • «
  • »