3 条题解

  • 2
    @ 2025-1-27 11:06:46
    #include<bits/stdc++.h>
    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
      @ 2025-3-23 12:16:06
      #include<bits/stdc++.h>
      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
        @ 2025-1-21 18:43:03

        #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){** ** if(a*a+b*bc || a*a+c*cb*b || b*b+c*c==a*a)** cout<<"yes"; ** if(a*a+b*b<c*c || a*a+c*c<b*b || b*b+c*c<a*a)** cout<<"yes"; ** if(a*a+b*b>c*c && a*a+c*c>b*b && b*b+c*c>a*a)** cout<<"yes"; ** }else cout<<"no"; ** return 0; }

        • 1

        信息

        ID
        45
        时间
        1000ms
        内存
        128MiB
        难度
        2
        标签
        (无)
        递交数
        92
        已通过
        55
        上传者