竞赛
考级
#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"; } }
乌鸦砂糖橘
#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"; }else{ cout<<"no"; } return 0; }
152****7881
看
AK君
正常
huangboxiang
#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"; } else { cout << "no"; } return 0; }
魏敬平
首先,我们先写好基本框架: 接着创建3个变量: 然后写个if-else,注意条件(t1+t2>t3 && t2+t3>t1 && t3+t1>t2): 最后,结合起来(答案): 保证让你得AC!
复仇者_among us
#include<iostream> using namespace std; int main(){ int a,s,d; cin>>a>>s>>d; if(a+s>d&&a+d>s&&s+d>a){ cout<<"yes"; }else{ cout<<"no"; } return 0; }
王
复仇者_无奈
#include<iostream> using namespace std; int main(){ long long a,b,c; cin>>a>>b>>c; if(a+b>c&&a+c>b&&b+c>a){ cout<<"yes"; } else{ cout<<"no"; } return 0; }
Arena Breakout
无注释
潜龙暗虎
逍遥骇好=&
别来下蛋
逆思想 #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<<"no"; else cout<<"yes"; }
Pai
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; if(a+b>c&&a+c>b&&c+b>a){ cout<<"yes"; } else{ cout<<"no"; } }
菜
#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<<"no"; }else{ cout<<"yes"; } }
138****0315
#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; }
Cristiano Ronald
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a+b>c&&a+c>b&&c+b>a)printf("yes"); else printf("no"); return 0; }
187****2300
枫岚
#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"; }else{ cout<<"no"; } return 0; } //懂了吧?
奶龙
ILOVEACGO
共89条