5 条题解

  • 1
    @ 2024-2-15 17:29:35

    Python的哦~

    a,b,c=map(int,input().split())
    p=(a+b+c)/2    
    if a+b>c and c+b>a and a+c>b:
        p=(a+b+c)/2 
        s=(p*(p-a)*(p-b)*(p-c))**0.5
        print("%.2f"%s)
    else:
        print("Data Error!")
    

    Ps:6.0≠6.00

    • 1
      @ 2023-11-10 11:31:04

      好东西

      a,b,c=map(int,input().split())
      if a+b>c and a+c>b and b+c>a:
          p=(a+b+c)/2 
          S=(p*(p-a)*(p-b)*(p-c))**(1/2)
          print("%.2f"%S)
      else: 
          print("Data Error!")
      
      • 1
        @ 2023-9-25 14:36:43

        a,b,c=map(int,input().split()) if a+b>c and a+c>b and b+c>a: p=(a+b+c)/2 s=p*(p-a)(p-b)(p-c) s=s**(1/2) print("%.2f"%s) else: print("Data Error!")

        • 1
          @ 2023-9-25 14:36:09

          a,b,c=map(int,input().split()) if a+b>c and a+c>b and b+c>a: p=(a+b+c)/2 s=p*(p-a)(p-b)(p-c) s=s**(1/2) print("%.2f"%s) else: print("Data Error!")

          • 1
            @ 2023-7-16 14:14:05

            #include <iostream> #include<string> #include<cmath> using namespace std; double a,b,c,p,s; int main(){ cin>>a>>b>>c; if(a+b>c&&a+c>b&&c+b>a){ p=(a+b+c)/2; s=sqrt(p*(p-a)(p-b)(p-c)); printf("%,2f",s); }else {cout<<"Data Error!";} return 0; }

            • 1

            信息

            ID
            41
            时间
            1000ms
            内存
            128MiB
            难度
            5
            标签
            递交数
            660
            已通过
            241
            上传者