竞赛
考级
黑客_天之神_ZDZL_zsy
151****9879
#include <iostream> using namespace std; int main () { int a,b,c; cin >> a >> b >> c ; if(a+b>c && b+c>a && a+c>b ){ cout << "yes"<< endl ; }else{ cout << "no"<< endl; } return 0; }
爱向自己
majmDZB
#include<bits/stdc++.h> using namespace std; int sum; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c&&b+c>a&&c+a>b){ cout<<"yes"; } else{ cout<<"no"; } return 0; }
KFCKUN
#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((a+b)>c&&(a+c)>b&&(c+b)>a) { cout<<"yes"; } else { cout<<"no"; } return 0; }
骗分过样例,暴力出奇迹(互关)
「欢愉」花火
题解
回来看看
suzifeng
宇宙炒鸡吴迪炸裂AC狗
#include <iostream> using namespace std; int main(){ double a,b,c; cin >> a >> b >> c; if(((a+b)>c) and ((a+c)>b) and ((b+c)>a)) { cout << "yes"; }else{ cout << "no"; } return 0; }
AndyEggy
DDBX kike mn
#include<bits/stdc++.h> 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"; }else{ cout<<"no"; } return 0; }
༺ཌༀW·R·AC·E·Aༀད༻
#include<bits/stdc++.h> 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; }
坤
定义一个变量(布尔) 如果n=1就输出 shangdaima
黑客_复仇者_ZDZL _大奶龙
666
#include <bits/stdc++.h> using namespace std; int main(){ int x,y,z; cin >> x >> y >> z; if(x+y>z && x+z>y && z+y>x){ cout << "yes"; }else{ cout << "no"; } return 0; }
赵奕航
Lprince
#include <bits/stdc++.h> using namespace std; long long a,b,c; void triangle() { if(a+b>c and a+c>b and b+c>a) cout<<"yes"; else cout<<"no"; } int main(){ cin>>a>>b>>c; triangle(); return 0; }
使一颗心免于悲伤
#include<bits/stdc++.h> using namespace std; bool is_tri(int a[]){ sort(a+1,a+4); if(a[1]+a[2]>a[3]){ return 1; } return 0; } int main(){ int a[4]; for(int i=1;i<=3;i++){ cin>>a[i]; } if(is_tri(a)){ cout<<"yes"; } else cout<<"no"; return 0; }
法西斯玫瑰
共89条