Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
41335 wuxinyue 正常血压 C++ Accepted 0 MS 244 KB 316 2024-02-20 12:28:58

Tests(1/1):


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


Judgement Protocol: