4 solutions

  • 1
    @ 2023-10-3 22:03:56
    这道题本身并不难,然而唯一需要注意的是,这是哪个OP写的题目?
    #include <bits/stdc++.h>
    using namespace std;
    int main(void)
    {
        int a,b,c,T;
        cin>>T;
        for (int i=1;i<=T;i++)
        {
            cin>>a>>b>>c;
            if ((a+b>c)&&(a+c>b)&&(c+b>a))
            {
                cout<<"Yes"<<endl;
            }
            else
            {
                cout<<"No"<<endl;
            }
        }
        return 0;
    }
    

    Information

    ID
    31
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    609
    Accepted
    224
    Uploaded By