Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
70593 sh25_ganzy 正常血压 C++ Accepted 0 MS 248 KB 356 2025-10-18 17:45:32

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n,t=0,tmax=0; cin>>n; int a[n],b[n]; for(int i=0;i<n;i++){ cin>>a[i]>>b[i]; if(a[i]>=90&&a[i]<=140&&b[i]>=60&&b[i]<=90){ t++; }else{ t=0; } if(t>tmax) tmax=t; } cout<<tmax; return 0; }


Judgement Protocol: