| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 54287 | 张思存 | 正常血压 | C++ | Compile Error | 0 MS | 0 KB | 374 | 2024-10-27 08:33:58 |
#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; }