Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
70593 sh25_ganzy 正常血压 C++ 通过 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; }


测评信息: