9 条题解

  • 1
    @ 2024-11-23 11:47:50

    #include<bits/stdc++.h>

    using namespace std;

    int main()

    {

    double w,h,l,a;

    cin >> w;

    if(w == w)

    {

    h=2*w;

    l=h*3.14159;

    a=w*w * 3.14159;

    printf("%.4f %.4f %.4f",h,l,a);

    }

    }

    • 1
      @ 2024-11-23 11:46:40

      #include<bits/stdc++.h> using namespace std; int main() { double w,h,l,a; cin >> w; if(w == w) { h=2w; l=h3.14159; a=w*w * 3.14159; printf("%.4f %.4f %.4f",h,l,a); } }

      • 1
        @ 2022-2-13 19:50:37
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	double r,zhi,z,c;
        	cin >> r;
        	if(r == r)
        	{
        		zhi=2*r;
        		z=zhi*3.14159;
        		c=r*r * 3.14159;
        		printf("%.4f %.4f %.4f",zhi,z,c); 
        	}
        }
        
        • 0
          @ 2022-12-7 22:30:08
          #include<iostream>
          #include<iomanip>
          #include<math.h>
          using namespace std;
          int main(){
          	double r,d,c,s;
          	cin>>r;
          	d=r*2;
          	c=d*3.14159;
          	s=r*r*3.14159;
          	cout<<fixed<<setprecision(4)<<d<<" ";
          	cout<<fixed<<setprecision(4)<<c<<" ";
          	cout<<fixed<<setprecision(4)<<s;
          }
          
          • -1
            @ 2024-11-23 17:25:25

            #include #include #include using namespace std; int main() { double a,b,c,d; cin>>a; b=2.0a; c=2a3.14159; d=aa*3.14159; cout<<fixed<<setprecision(4)<<b<<" "; cout<<fixed<<setprecision(4)<<c<<" "; cout<<fixed<<setprecision(4)<<d; return 0; } 挺简单的

            • -1
              @ 2024-11-22 20:15:28

              #include #include #include using namespace std; int main() { double n,z,c,s; cin>>n; z=2.0n; c=2n3.14159; s=nn*3.14159; cout<<fixed<<setprecision(4)<<z<<" "; cout<<fixed<<setprecision(4)<<c<<" "; cout<<fixed<<setprecision(4)<<s;

              return 0;

              }

              • -1
                @ 2024-11-22 18:06:04

                #include<bits/stdc++.h> using namespace std; int main(){ double r; cin>>r; double d,c,s; d=2r; c=23.14159r; s=3.14159pow(r,2); printf("%.4lf %.4lf %.4lf",d,c,s); return 0; }

                • -1
                  @ 2024-4-6 19:37:42

                  #include #include #include<math.h> using namespace std; int main(){ double r,d,c,s; cin>>r; d=r2; c=d3.14159; s=rr3.14159; cout<<fixed<<setprecision(4)<<d<<" "; cout<<fixed<<setprecision(4)<<c<<" "; cout<<fixed<<setprecision(4)<<s; }

                  • -2
                    @ 2022-7-2 20:43:05

                    #include<stdio.h> #include using namespace std; int main() { double a,b,c,d,pi; cin>>a; pi=3.14159; b=a2; printf("%.4lf ",b); c=pib; printf("%.4lf ",c); d=piaa; printf("%.4lf ",d); }

                    • 1

                    信息

                    ID
                    889
                    时间
                    1000ms
                    内存
                    128MiB
                    难度
                    2
                    标签
                    递交数
                    369
                    已通过
                    214
                    上传者