C++ 判断三角形构成条件 - 算法练习
#include
int main() { int a, b, c; cin >> a >> b >> c; if (a + b > c && a + c > b && b + c > a) { cout << 'Yes' << endl; } else { cout << 'No' << endl; } return 0; }
AI 优化版
原文地址:https://www.cveoy.top/t/topic/pG1z 著作权归作者所有。请勿转载和采集!