2 条题解

  • 0

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int a,b,c;
    cin>>a>>b>>c;
    if(a+b>c&&b+c>a&&a+c>b)
    cout<<"yes"<<endl;
    else
    cout<<"no"<<endl;
    return 0;
    }

  • -2

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int a,b,c;
    cin>>a>>b>>c;
    if(a+b>c&&b+c>a&&a+c>b)
    cout<<"yes"<<endl;
    else
    cout<<"no"<<endl;
    return 0;
    }

  • 1

信息

ID
2345
难度
3
分类
(无)
标签
递交数
297
已通过
151
通过率
51%
被复制
3
上传者