Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
39651 | lihaocheng | 正常血压 | C++ | Accepted | 0 MS | 252 KB | 266 | 2024-02-03 15:10:43 |
#include<iostream> using namespace std; int main(){ int max=0,n,a,b,t=1; cin>>n; for (int i=0;i<n;i++) { cin>>a>>b; if(a>90 &&a<=140 && b>=60 && b<90) { t++; }else{ if(t>max){ max=t; } t=0; } } cout<<max; return 0; }