Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
29711 惠子铭 正常血压 C++ Accepted 0 MS 248 KB 363 2023-11-02 18:36:02

Tests(1/1):


#include<iostream> using namespace std; int main() { int a,b,n,t,m,max=0; cin>>n; t=0; for(int i=1;i<=n;i++) { cin>>a>>b; if(a>=90&&a<=140&&b>=60&&b<=90) { t++; if(t>=max) max=t; } else t=0; } cout<<max; return 0; }


Judgement Protocol: