3 条题解

  • 0
    @ 2025-7-6 17:09:09

    #include <bits/stdc++.h> using namespace std; int main () { int a,s,d,f; cin>>a>>s>>d; if(a>s) { f=a; a=s; s=f; } if(a>d) { f=a; a=d; d=f; } if(s>d) { f=s; s=d; d=f; } if(a+s<=d) { cout<<"Not triangle"<<endl; return 0; } if(aa+ssdd) { cout<<"Right triangle"<<endl; } if(aa+ss>dd) { cout<<"Acute triangle"<<endl; } if(aa+ss<d*d) { cout<<"Obtuse triangle"<<endl; } if(as || ad || sd) { cout<<"Isosceles triangle"<<endl; } if(as && sd) { cout<<"Equilateral triangle"<<endl; } return 0; }

    信息

    编号
    2311
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    164
    已通过
    40
    上传者