1 条题解

  • 0
    @ 2022-10-14 10:18:38
    #include <bits/stdc++.h>
    using namespace std;
    int t;
    int a, b, c, d, ans;
    int main()
    {
        cin >> t;
        while (t--)
        {
            cin >> a >> b >> c >> d;
            //布尔表达式成立时值为 true,对应数值 1
            //布尔表达式不成立时值为 false,对应数值 1
            ans = (b > a) + (c > a) + (d > a);
            cout << ans << "\n";
        }
        return 0;
    }
    
    • 1

    信息

    ID
    1101
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    递交数
    23
    已通过
    14
    上传者