题解
2026-06-10 21:33:41
发布于:广东
10阅读
0回复
0点赞
因三角形任意两边长之和大于第三边
所以代码如下:
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a+b>c){
if(a+c>b){
if(c+b>a){
cout<<"yes";
}else{
cout<<"no";
}
}else{
cout<<"no";
}
}else{
cout<<"no";
}
return 0;**加粗文本**
}
这里空空如也

有帮助,赞一个