解题思路:
注意事项:
参考代码:
#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 人评分
DNA (C++代码)浏览:671 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:649 |
C语言训练-计算1~N之间所有奇数之和 (C语言代码)浏览:686 |
【偶数求和】 (C语言代码)浏览:672 |
C语言训练-大、小写问题 (C语言代码)浏览:787 |
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)浏览:627 |
简单的a+b (C语言代码)浏览:455 |
C二级辅导-统计字符 (C语言代码)浏览:514 |
简单的a+b (C语言代码)浏览:541 |
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:617 |