1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() { 4 int x,y,n,s,max; 5 cin>>n; 6 for(int i=0;i<n;i++){ 7 cin>>x>>y; 8 if(x>=90 && x<=140 && y>=60 && y<=90){ 9 s++; 10 }else{ 11 s=0; 12 } 13 if(max<s){ 14 max=s; 15 } 16 } 17 cout<<max; 18 return 0; 19 }
标签:std,int,血压,namespace,正常,&&,main From: https://www.cnblogs.com/fushuxuan/p/17255966.html