3 条题解

  • 0
    @ 2024-12-26 20:53:05
    #include<bits/stdc++.h>
    using namespace std;
    
    #define PI 3.1415926
    
    int main()
    {
    	int t;
    	cin>>t;
    	double A,l;
    	while(t--)
    	{
    		cin>>l;
    		A = PI*pow(l,2)/3.00;
    		cout<<fixed<<setprecision(2)<<A<<endl;
    		// fixed函数表示输出小数,不以科学技术法进行输出
    		// setprecision 函数表示保留几位小数
    	}
    }
    
    • 0
      @ 2024-10-22 20:10:20

      👀️

      #include <stdio.h>

      #define pi 3.1415926

      int main()

      {

      int n;

      scanf("%d",&n);

      while(n--){

      double a;

      scanf("%lf",&a);

      printf("%.2lf\n",aapi/3);

      }

      return 0;

      }

      • 0
        @ 2023-10-9 1:23:58
        #include<stdio.h>
        #define pi 3.1415926
        int main()
        {
        	int n;
        	double s;
        	scanf("%d",&n);
        	while(n--)
        	{
        		double m;
        		scanf("%lf",&m);
        		s=(m*m*pi)/3;
        		printf("%.2lf\n",s);
        	}
        	return 0;
        }
        
        • 1

        信息

        ID
        194
        时间
        1000ms
        内存
        128MiB
        难度
        4
        标签
        (无)
        递交数
        539
        已通过
        235
        上传者