若只解法
2023-10-18 21:27:23
发布于:江苏
7阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a>b&&a>c){
if(b+c>a){
cout<<"yes"<<endl;
}else{
cout<<"no"<<endl;
}
}else if(b>c&&b>a){
if(a+c>b){
cout<<"yes"<<endl;
}else{
cout<<"no"<<endl;
}
}else if(c>a&&c>b){
if(a+b>c){
cout<<"yes"<<endl;
}else{
cout<<"no"<<endl;
}
}
}
这里空空如也
有帮助,赞一个