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
难度
1
分类
(无)
标签
递交数
167
已通过
106
通过率
63%
被复制
3
上传者