9 条题解
-
4limingjie LV 7 @ 2022-1-3 9:46:13
#include <stdio.h> #include <iostream> #include <math.h> #include <iomanip> using namespace std; 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"; } }
-
02024-2-21 20:33:55@
#include<iostream> #include<cstdio> #include<string> #include<bits/stdc++.h> #define LL long long using namespace std; const int INF=0x3f3f3f3f; const int N=2e5+10; int a,b,c; int main(){ cin>>a>>b>>c; if(max(a,max(b,c))<min(a,min(b,c))+a+b+c-max(a,max(b,c))-min(a,min(b,c))){ cout<<"yes"; }else{ cout<<"no"; } }
-
02024-1-26 21:23:39@
#include <bits/stdc++.h> using namespace std; int main() { int a , b , c; cin >> a >> b >> c; if( a + b > c && c + b > a && c + a > b ) { cout << "yes"; } else { cout << "no"; } return 0; }
-
02022-3-30 21:34:04@
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int a,b,c,d; cin>>a>>b>>c; if(a>b){ d=b; b=a; a=d; } if(b>c){ d=c; c=b; b=d; } if(a>b){ d=b; b=a; a=d; } if(a+b>c){ cout<<"yes"; }else{ if(a+b<=c){ cout<<"no"; } }
}
-
-12024-5-29 20:25:53@
#include<iostream> #include<cstdio> #include<iomanip> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b>c){if (c+b>a){if(a+c>b){cout<<"yes"; }else{cout<<"no";} }else{cout<<"no";} }else{cout<<"no";} return 0; }
-
-12024-5-28 22:13:20@
#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; }
-
-12024-5-28 18:09:25@
#include<iostream> #include<cstdio> #include<iomanip> #include<cmath> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b>c){if (c+b>a){if(a+c>b){cout<<"yes"; }else{cout<<"no";} }else{cout<<"no";} }else{cout<<"no";} return 0; }
-
-12023-4-5 16:59:27@
#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; }
-
-32022-2-9 22:24:36@
#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; }
- 1
信息
- ID
- 879
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 3
- 标签
- 递交数
- 550
- 已通过
- 284
- 上传者