新手友好题解
2026-07-26 15:45:34
发布于:广东
2阅读
0回复
0点赞
知识点:三角形任意两边之和大于第三边,三角形任意两边之差大于第三边。(具体可以参考四年级数学书)
至于我为什么不用|||三角形任意两边之差大于第三边|||,因为这题只需要用|||三角形任意两边之和大于第三边|||。
如果这个对你有帮助的话(虽然有点长,但不影响,哈),请点个赞,亲
#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(a+b>c and b+c>a and c+a>b){
cout << "yes";
}
else{
cout << "no";
}
return 0;
}
这里空空如也





有帮助,赞一个