1 条题解

  • 1
    @ 2026-7-8 9:10:41

    #include using namespace std; int main(){ int n; cin >> n; int shousuo,shuzhang,cnt = 0,max = 0; for(int i = 1;i <= n;i ++){ cin >> shousuo >> shuzhang; if(shousuo >= 90 && shousuo <= 140 && shuzhang >= 60 && shuzhang <= 90){ cnt++; } if(cnt > max){ max = cnt; }else{ cnt = 0; } } cout << max; return 0; }

    • 1

    信息

    ID
    80
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    124
    已通过
    56
    上传者