求赞(题解)
2024-01-30 17:46:02
发布于:广东
1阅读
0回复
0点赞
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main() {
long long a[3];
for(int u=0;u<3;u++){
cin>>a[u];
}
if(a[0]+a[1]>a[2] and a[2]+a[1]>a[0] and a[0]+a[2]>a[1]) cout<<"yes";
else cout<<"no";
return 0;
}
全部评论 1
#include <iostream>
using namespace std;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;
}2025-03-23 来自 浙江
0
有帮助,赞一个