3 条题解

  • 1
    @ 2023-10-2 15:48:50
    #include<iostream>
    #include<cstdio>
    #include<cmath>
    #include<algorithm>
    using namespace std;
    int main(){
    	int a,b,c,d;
    	cin >> a >> b >> c;
    	bool bl1=a>b;
    	bool bl2=a>c;
    	bool bl3=b>c;
    	if(bl1 == 1){
    		if(bl2 == 1){
    			d = a;
    		}else{
    			d = c;
    		}
    	}else{
    		if(bl3 == 1){
    			d = b;
    		}else{
    			d = c;
    		}
    	}
    	if(a+b+c-d > d){
    		cout << "1";
    	}else{
    		cout << "0";
    	}
    	return 0;
    }
    
    • 0
      @ 2023-10-22 11:28:19
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int a,b,c;
          cin>>a>>b>>c;
          if(a+b>c&&b+c>a&&c+a>b)cout<<1;
          else cout<<0;
          return 0;
      }
      
      • 0
        @ 2023-6-11 20:29: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<<1;
        	else cout<<0;
        }
        
        • 1

        信息

        ID
        6862
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        49
        已通过
        37
        上传者