13 条题解

  • 1
    @ 2024-11-16 18:55:19

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

    • 0

      思路

      公式都给你了。

      code

      #include<bits/stdc++.h>
      using namespace std;
      int a,b,c;
      int main(){
      	cin>>a>>b>>c;
      	double p=(a+b+c)*0.5;
      	printf("%.2f",sqrt(p*(p-a)*(p-b)*(p-c)));
      	return 0;
      }
      
      • 0
        @ 2024-11-6 13:57:01

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

        • 0
          @ 2024-11-6 13:23:16

          #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+c>b&&b+c>a) { cout<<fixed<<setprecision(2)<<sqrt(s)<<endl; } return 0; }

          • 0
            @ 2024-1-28 11:18:36
            ```
            
            ```
            #include<bits/stdc++.h>
            using namespace std;
            double a,b,c,p,ans;
            int main()
            {
            	cin>>a>>b>>c;
            	p=(a+b+c)/2;
            	ans=sqrt(p*(p-a)*(p-b)*(p-c));
            	printf("%.2lf",ans);
            	return 0;
            }
            ```
            
            • -1
              @ 2023-12-25 13:49:38

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

              • -1
                @ 2023-12-24 17:38:10

                #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); cout<<fixed<<setprecision(2)<<sqrt(s); return 0; }

                • -2
                  @ 2023-12-24 13:38:47

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

                  • -2
                    @ 2023-12-24 13:14:52

                    #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=sqrt (p*(p-a)(p-b)(p-c)); cout<<fixed<<setprecision(2)<<s; }

                    • -2
                      @ 2023-12-23 23:48:40

                      #include <stdio.h>#include<stdlib.h>#include<math.h>int main(){ double a, b, c,area,s,max,min; scanf("%lf%lf%lf", &a, &b, &c); if ((a + b > c && a + c > b && b + c > a) && (a > b - c && b > a - c && c > a - b)) { s = (a + b + c) / 2; area = sqrt(s * (s - a) * (s - b) * (s - c)); printf("%.2lf\n", area); } else { if (a > b) max = a, min = b; else max = b, min = a; if (c > max) max = c; else max = max; if (c < min) min = c; else min = min; printf("%.2lf", max - min); } system("pause"); return 0;}

                      • -3
                        @ 2023-12-24 13:28:25

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

                        • -3
                          @ 2023-12-24 13:16:49

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

                          • -7
                            @ 2023-12-23 13:40:25

                            #include<iostream> #include<iomanip> using namespace std; int main() { double a,b,c,d,e,f,g,z; cin>>a>>b; z=3.1415926; c=zbb; d=c2; e=2bz; f=ea; g=d+f; cout<<fixed<<setprecision(3)<<g; return 0; }

                            • 1

                            信息

                            ID
                            11
                            时间
                            1000ms
                            内存
                            256MiB
                            难度
                            3
                            标签
                            递交数
                            260
                            已通过
                            134
                            上传者