7 条题解

  • 1

    思路

    翻译一下:求高为 aa ,半径为 bb 的圆柱表面积。

    S=2S+S=2πb2+2πb×a=2πb(b+a)\begin{aligned} S_{\text{总}}&=2S_{\text{底}}+S_{\text{侧}}\\ &=2 \pi b^2+2 \pi b \times a\\ &=2\pi b(b+a) \end{aligned}

    code

    #include<bits/stdc++.h>
    using namespace std;
    int a,b;
    const double PI=3.1415926;
    int main(){
    	cin>>a>>b;
    	printf("%.3f",2*PI*b*(a+b));
    	return 0;
    }
    
    • 1
      @ 2024-11-5 13:55:00

      #include<bits/stdc++.h> using namespace std; const double pi=3.1415926; int main() { double a,b,c; cin>>a>>b; c=2bpia+2bbpi; cout<<fixed<<setprecision(3)<<c<<endl; return 0; }

      • 1
        @ 2023-12-24 13:47:36

        #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; const double PI=3.1415926; cout<<fixed<<setprecision(3)<<PI2b*(b+a); return 0; }

        • 1
          @ 2023-12-23 14:05:31

          #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; const double PI=3.1415926; cout<<fixed<<setprecision(3)<<2PIba+PIbb2; return 0; }

          • -2
            @ 2024-11-6 13:07:28

            👍 #include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; const double pi=3.1415926; cout<<fixed<<setprecision(3)<<2pi(bb+ab); return 0; }

            • -2
              @ 2023-12-23 13:40:05

              #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; }

              • -4
                @ 2023-12-24 13:10:59

                #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.000; e=2bz; f=ea; g=d+f; cout<<fixed<<setprecision(3)<<g; return 0; }

                • 1

                信息

                ID
                10
                时间
                1000ms
                内存
                256MiB
                难度
                4
                标签
                递交数
                271
                已通过
                119
                上传者