为什么我只有33分,哪位大佬帮忙看看?

lyh198 波风水门 2024-09-10 19:51:13 6

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

{{ vote && vote.total.up }}

共 1 条回复

CPP 刷题王
  1. 不应放在正常血压里面,hack:全部都是非正常血压。
  2. 如果不是正常血压,那么不应该是 ,而是