不正经题解
2026-01-26 19:17:38
发布于:上海
2阅读
0回复
0点赞
三角形任意两条边大于另一条边
#include<bits/stdc++.h>
using namespace std;
//开头
int main(){
int a,b,c;//定义三条边的长度a,b,c
cin>>a>>b>>c;//输入a,b,c
if(a+b>c && a+c>b && b+c>a){//如果a,b,c满足任意两条边大于另一条边
cout<<"yes"<<endl;
}
else{
cout<<"no"<<endl;
}
return 0;
}
这里空空如也




有帮助,赞一个