5 条题解

  • 0
    @ 2023-10-1 11:15:49
    #include<iostream>
    #include<iomanip>
    #define PI 3.14159
    using namespace std;
    int main(){
    	double r;
    	cin >> r;
    	cout << fixed << setprecision(4) << r*2 << " ";
    	cout << fixed << setprecision(4) << PI*2*r << " ";
    	cout << fixed << setprecision(4) << PI*r*r << " ";
    	return 0;
    }
    
    • 0
      @ 2023-8-20 15:40:30
      #include<cstdio>
      #include<iostream>
      using namespace std;
      const double PI= 3.14159;
      int main(){
          double r, d, c, s;
          cin>>r;
          d = r*2;
          c = 2 * PI * r;
          s = PI * r * r;
          printf("%.4lf %.4lf %.4lf", d, c, s);
          return 0;
      } 
      
      • -1
        @ 2023-10-28 17:49:27
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            double r;
            cin>>r;
            double pi=3.14159;
            printf("%.4f %.4f %.4f",2*r,2*pai*r,pai*r*r);
            return 0;
        }
        
        • -1
          @ 2022-12-27 9:57:29
          #include<bits/stdc++.h>
          using namespace std;
          long long q,w,e,r,t,y,u,i,o,p,d,f,g,h,j,k,l,z,x,c,v,b,n,m;
          string s;double dd,ee,ff=3.14159;
          long long a[100000],as[100000],asd[100000];
          int main()
          {
          	cin>>dd;
          	cout<<fixed<<setprecision(4)<<dd*2<<" "<<dd*2*ff<<" "<<dd*dd*ff;
              return 0;
          }
          
          • -1
            @ 2022-6-12 8:36:36
            #include<bits/stdc++.h>
            using namespace std;
            long long q,w,e,r,t,y,u,i,o,p,d,f,g,h,j,k,l,z,x,c,v,b,n,m;
            string s;double dd,ee,ff=3.14159;
            long long a[100000],as[100000],asd[100000];
            int main()
            {
            	cin>>dd;
            	cout<<fixed<<setprecision(4)<<dd*2<<" "<<dd*2*ff<<" "<<dd*dd*ff;
                return 0;
            }
            
            • 1

            信息

            ID
            6826
            时间
            1000ms
            内存
            128MiB
            难度
            1
            标签
            (无)
            递交数
            89
            已通过
            68
            上传者