4 条题解

  • 1
    @ 2022-12-7 22:30:08
    #include<iostream>
    #include<iomanip>
    #include<math.h>
    using namespace std;
    int main(){
    	double r,d,c,s;
    	cin>>r;
    	d=r*2;
    	c=d*3.14159;
    	s=r*r*3.14159;
    	cout<<fixed<<setprecision(4)<<d<<" ";
    	cout<<fixed<<setprecision(4)<<c<<" ";
    	cout<<fixed<<setprecision(4)<<s;
    }
    
    • 0
      @ 2024-4-6 19:37:42

      #include<iostream> #include<iomanip> #include<math.h> using namespace std; int main(){ double r,d,c,s; cin>>r; d=r2; c=d3.14159; s=rr3.14159; cout<<fixed<<setprecision(4)<<d<<" "; cout<<fixed<<setprecision(4)<<c<<" "; cout<<fixed<<setprecision(4)<<s; }

      • 0
        @ 2022-2-13 19:50:37
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	double r,zhi,z,c;
        	cin >> r;
        	if(r == r)
        	{
        		zhi=2*r;
        		z=zhi*3.14159;
        		c=r*r * 3.14159;
        		printf("%.4f %.4f %.4f",zhi,z,c); 
        	}
        }
        
        • -2
          @ 2022-7-2 20:43:05

          #include<stdio.h> #include<iostream> using namespace std; int main() { double a,b,c,d,pi; cin>>a; pi=3.14159; b=a2; printf("%.4lf ",b); c=pib; printf("%.4lf ",c); d=piaa; printf("%.4lf ",d); }

          • 1

          信息

          ID
          889
          时间
          1000ms
          内存
          128MiB
          难度
          2
          标签
          递交数
          249
          已通过
          151
          上传者