Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
54337 | zhangweiran | 正常血压 | C++ | Accepted | 0 MS | 244 KB | 372 | 2024-10-27 10:41:37 |
#include<bits/stdc++.h> using namespace std; int main(){ int n, h, l, c = 0, s = 0; cin >> n; for(int i = 0; i < n; i++){ cin >> h >> l; if(h >= 90 && h <= 140 && l >= 60 && l <= 90){ c++; if(c > s){ s = c; } }else{ c = 0; } } cout << s; return 0; }