11 条题解

  • 1
    @ 2023-12-26 13:13:11
    #include<bits/stdc++.h>
     using namespace std; 
    int main() 
    {
    double a,b,c,s,p; 
    cin>>a>>b>>c;
     p=(a+b+c)/2.00; 
    s=p*(p-a)*(p-b)*(p-c); 
    if(a+b>c&&a-b<c)
     {
    cout<<fixed<<setprecision(2)<<sqrt(s);
    } 
    else
    {
    cout<<"Error!";
    }
     return 0;
     }
    
    • 0
      @ 2024-11-8 17:49:14

      #include<bits/stdc++.h> using namespace std; int main() { double a,b,c,p; cin>>a>>b>>c; p=(a+b+c)/2; if(a+b>c&&a+c>b&&b+c>a) cout<<fixed<<setprecision(2)<<sqrt(p*(p-a)(p-b)(p-c)); else cout<<"Error!"; return 0; }

      • 0
        @ 2023-12-27 13:52:41

        #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,p,s; cin>>a>>b>>c; p=(a+b+c)/2; s=p*(p-a)(p-b)(p-c); if(a+b>c&&b+c>a&&a+c>b) { cout<<fixed<<setprecision(2)<<sqrt(s); } else { cout<<"Error!"; } return 0; }

        • -1
          @ 2024-11-11 17:15:23

          #include<bits/stdc++.h> using namespace std; int main() { double a,b,c,s,p; cin>>a>>b>>c; a>0, b>0, c>0, p=(a+b+c)/2, s=p*(p-a)(p-b)(p-c); if(a+b>c&&a+c>b&&b+c>a){cout<<fixed<<setprecision(2)<<sqrt(s);} else{cout<<"Error!";} return 0; }

          • -1

            #include<bits/stdc++.h> using namespace std; int main() { double a,b,c,p,s; cin>>a>>b>>c; p=(a+b+c)/2; s=p*(p-a)(p-b)(p-c); if(a+b>c&&a+c>b&&b+c>a) { cout<<fixed<<setprecision(2)<<sqrt(s); } else { cout<<"Error!"; } return 0; }

            • -1
              @ 2024-11-9 13:08:50

              #include<bits/stdc++.h> using namespace std; int main() { double a,b,c,s; cin>>a>>b>>c; s=(a+b+c)/2; if(a+b>c&a-b<c) { cout<<fixed<<setprecision(2)<<s; } else { cout<<"Error!"; } return 0; }

              • -1
                @ 2024-1-2 13:28:59

                #include<bits/stdc++.h> using namespace std; int main() { int a,b,c,n,s; cin>>a>>b>>c; n=(a+b+c)/2; s=n*(n-a)(n-c)(n-b); if(a+b>c&&b+c>a&&a+c>b) { cout<<fixed<<setprecision(2)<<sqrt(s);

                }
                else
                {
                	cout<<"Error!";
                }
                
                return 0;
                

                }

                • -1
                  @ 2023-12-27 13:47:52

                  #include<bits/stdc++.h> using namespace std; int main() {double a,b,c,s,p; cin>>a>>b>>c; if(a+b>c&&a-b<c) {p=(a+b+c)/2; s=sqrt(p*(p-a)(p-b)(p-c)); cout<<fixed<<setprecision(2)<<s; } else {cout<<"Error!"; } return 0; }

                  • -1
                    @ 2023-12-25 13:55:23

                    #include<bits/stdc++.h> using namespace std; int main() {double a,b,c,s,p; cin>>a>>b>>c; p=(a+b+c)/2; s=p*(p-a)(p-b)(p-c); if(a+b>c&&a-b<c) {cout<<fixed<<setprecision(2)<<sqrt(s);} else{cout<<"Error!";} return 0; }

                    • -1
                      @ 2023-12-25 13:24:51

                      #include<bits/stdc++.h> using namespace std; int main() { double a,b,c,s,p; cin>>a>>b>>c; if(a+b>c&&b+c>a&&a+c>b) { p=(a+b+c)/2; s=sqrt(p*(p-a)(p-b)(p-c)); cout<<fixed<<setprecision(2)<<s; } else { cout<<"Error!"; } return 0; }

                      • -1
                        @ 2023-12-25 13:18:26

                        #include<bits/stdc++.h> using namespace std; main() { double a,b,c,s,p,h; cin>>a>>b>>c; if(a+b>c&&a+c>b&&b+c>a) { p=(a+b+c)/2; s=p*(p-a)(p-b)(p-c); h=sqrt(s); cout<<fixed<<setprecision(2)<<h; } else{cout<<"Error!"; } }

                        • 1

                        信息

                        ID
                        27
                        时间
                        1000ms
                        内存
                        256MiB
                        难度
                        4
                        标签
                        递交数
                        228
                        已通过
                        106
                        上传者