13 条题解

  • 5
    @ 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";
    	}
    }
    
  • 1
    @ 2026-4-22 20:35:16

    当你想偷懒时你写的代码:

    #include<iostream>
          using namespace std;
        int main()
        {
          int a,b,c;
          cin>>a>>b>>c;
          if(a+c>b && a+b>c && b+c>a)
          {
          cout<<"yes";
          return 0;
          }
        	cout<<"no";
          return 0;
        }
    
    • 1
      @ 2025-12-27 21:39:12
      #include<iostream>
      #include<cstdio>
      #include<cctype>
      #include<string.h>
      #include<math.h>
      #include<cmath>
      #include<algorithm>
      #include<iomanip>
      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;
      }
      
      
      
      • 1
        @ 2025-12-7 13:18:04
        #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;
        }
        • 1
          @ 2025-5-10 23:29:48

          最短题解 #include 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"; }

          • 1
            @ 2024-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;
            }
            
            • 0
              @ 2024-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";
              	}
              }
              
              
              
              
              
              • -2
                @ 2024-5-29 20:25:53

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

                • -2
                  @ 2024-5-28 22:13:20

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

                  • -2
                    @ 2024-5-28 18:09:25

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

                    • -2
                      @ 2023-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; }

                      • -2
                        @ 2022-3-30 21:34:04

                        #include

                        #include

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

                        }

                        • -3
                          @ 2022-2-9 22:24:36

                          #include 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
                          标签
                          递交数
                          704
                          已通过
                          373
                          上传者