top1编程
← 返回题目
题解

【入门】圆柱体表面积

1 条题解

  • 0
    @ 2026-7-29 0:16:33
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a,b;
        cin>>a>>b;
        double c=3.1415926*a*a;
        double d=3.1415926*2*a*b;
        cout<<fixed<<setprecision(2)<<c*2+d;
    	return 0;
    }
    
    • 1