AC注释教学
2025-06-29 19:55:52
发布于:福建
2阅读
0回复
0点赞
#include <bits/stdc++.h>//万能头
usingamespace std;//使用万能头
int main(){//主函数
long long z , x , c;//定义三角形的三条边分别为:直角边,斜边,垂直边
cin >> z >> x >> c;//读入直角边,斜边,垂直边
if (z + x > c && z + c > x && x + c > z){//判断是否满足三角形的三边关系:任意两条边之和大于第三第三边
//cout << "yes" << endl;
printf ("yes");//满足条件就输出yes
}else{
//cout << "no" << endl;
printf ("no");//不满足条件就输出no
}
return 0;//结束(可有可不有)
}
这里空空如也
有帮助,赞一个