1 条题解

  • 0
    @ 2024-12-24 10:06:20

    C :

    #include<stdio.h>
    int main()
    {double r;
    printf("%0.2f\n",266.0*3.1415926);
    }
    

    C++ :

    #include<cstdio>
    using namespace std;
    int main()
    {
    	float pp=3.1415926;
    	float rr,s,hh;
    	rr=7; hh=12;
    	s=2*pp*rr*rr+2*pp*rr*hh;
    	printf("%0.2f\n",s);
    	return 0;
    }
    
    
    • 1

    信息

    ID
    2719
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    1
    已通过
    1
    上传者