11 solutions
- 1
Information
- ID
- 541
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 137
- Accepted
- 96
- Uploaded By
#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; }😄 zzz玩家有吗
#include<iostream>
#include<iomanip>
using namespace std;
int a,b,c;
int main(){
cin>>a>>b>>c;
if(a+b>c&&a+c>b&&b+c>a) cout<<"yes"<<"\n";
else cout<<"no"<<"\n";
return 0;
}
简单判断
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if (a+b>c&&b+c>a&&a+c>b) printf("yes") ;
else printf("no");
return 0;
}
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
int a[5];
int main(){
cin>>a[1]>>a[2]>>a[3];
sort(a+1,a+3+1);
if(a[1]+a[2]>a[3]) cout<<"yes"<<endl;
else cout<<"no"<<endl;
return 0;
}
#include #include 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; }
#include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b>c){ cout<<"yes"; } else{ cout<<"no"; } return 0; }
#include<bits/stdc++.h>
using namespace std;
int main(int argc, char **argv){
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;
}
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv){
int s,b,c;
cin >> s >> b >> c;
if (s + b > c && s + c > b && b + s > s){
cout << "yes";
}else{
cout << "no";
}
return 0;
}
#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c&&c+b>a&&a+c>b)cout<<"yes"; else cout<<"no"; return 0;
}
#include using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a+b>c&&c+b>a&&a+c>b)cout<<"yes"; else cout<<"no"; return 0;
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.