11 solutions

  • 1
    @ 2023-9-19 19:09:54
    #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;
    }
    
    • 0
      @ 2024-7-10 18:43:19

      #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玩家有吗

      • 0
        @ 2024-1-27 9:26:02
        #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;
        }
        

        简单判断

        • 0
          @ 2023-10-4 15:09:16
          #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;
          }
          
          • 0
            @ 2023-9-17 11:14:02
            #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;
            }
            
            • -1
              @ 2024-7-9 17:35:28

              #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; }

              • -1
                @ 2024-7-9 17:27:05

                #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; }

                • -1
                  @ 2024-7-9 16:42:00
                  #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;
                  }
                  
                  • -2
                    @ 2024-7-9 20:25:15
                    #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;
                    }
                    
                    • -3
                      @ 2023-10-4 10:51:24

                      #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;

                      }

                      • -3
                        @ 2023-10-4 10:51:15

                        #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;

                        }

                        • 1

                        Information

                        ID
                        541
                        Time
                        1000ms
                        Memory
                        256MiB
                        Difficulty
                        1
                        Tags
                        # Submissions
                        137
                        Accepted
                        96
                        Uploaded By