题解
2023-03-17 22:46:24
发布于:上海
224阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int sum;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a+b>c&&b+c>a&&c+a>b){
cout<<"yes";
}
else{
cout<<"no";
}
return 0;
}
全部评论 1
我是这样输的:
#include<iostream>
using namespace std;
int main()
{
int a,b,c,x,y,z;
cin >> a >> b >> c;
x = a + b;
y = a + c;
z = b + c;
if(x > c && y > b && z > a){
cout << "yes";
} else {
cout << "no";
}
return 0;
}2024-12-14 来自 广东
1
有帮助,赞一个