正常血压

#include <bits/stdc++.h> 
using namespace std;
int main(){
     int x,y,n,s,max;
     cin>>n;
     for(int i=0;i<n;i++){
	          cin>>x>>y;
         if(x>=90 && x<=140 && y>=60 && y<=90){
             s++;
         }else{
             s=0;
         }
         if(max<s){
             max=s;
         }
     }
     cout<<max;
     return 0;
}
 

  

posted @ 2023-03-25 23:39  fushuxuan1  阅读(57)  评论(0)    收藏  举报