15 条题解

  • 7
    @ 2023-3-29 17:04:10
    #include<iostream> 
    #include<iomanip>
    using namespace std;
    int main(){
    	double a,b,c,d;
    	cin>>a;
    	b=2*a;
    	c=2*3.14159*a;
    	d=3.14159*a*a;
    	cout<<fixed<<setprecision(4)<<b<<" ";
    	cout<<fixed<<setprecision(4)<<c<<" ";
    	cout<<fixed<<setprecision(4)<<d;
    	return 0;
    }
    
  • 1
    @ 2023-3-29 17:11:13

    #include<iostream> #include<iomanip> using namespace std; int main() { double r,a,b,c; cin>>r; a=2r; b=23.14159r; c=3.14159r*r; cout<<fixed<<setprecision(4)<<a<<" "; cout<<fixed<<setprecision(4)<<b<<" "; cout<<fixed<<setprecision(4)<<c; return 0; }

    • 1
      @ 2023-3-29 17:08:45
      #include<iostream> 
      #include<iomanip>
      using namespace std;
      int main()
      {
      	double r,a,b,c;
      	cin>>r;
      	a=2*r;
      	b=2*3.14159*r;
      	c=3.14159*r*r;
      	cout<<fixed<<setprecision(4)<<a<<" ";
      	cout<<fixed<<setprecision(4)<<b<<" ";
      	cout<<fixed<<setprecision(4)<<c;
      	return 0;	
      }
      
      • 0
        @ 2023-6-2 13:57:31
        #include<iostream> 
        #include<iomanip>
        using namespace std;
        int main()
        {
        	double r,a,b,c;
        	cin>>r;
        	a=2*r;
        	b=2*3.14159*r;
        	c=3.14159*r*r;
        	cout<<fixed<<setprecision(4)<<a<<" ";
        	cout<<fixed<<setprecision(4)<<b<<" ";
        	cout<<fixed<<setprecision(4)<<c;
        	return 0;	
        }
        
        • 0
          @ 2023-6-2 13:41:27
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
          double a,b;
          cin>>a>>b;
          printf("%.3lf",b/a*100);
          cout<<"%";
          return 0;
          
          }
          
          • 0
            @ 2023-5-23 13:50:31

            iiuyiuy8i6

            • 0
              @ 2023-5-23 13:49:50
              #include<iostream> 
              #include<iomanip>
              using namespace std;
              int main(){
              	double a,b,c,d;
              	cin>>a;
              	b=2*a;
              	c=2*3.14159*a;
              	d=3.14159*a*a;
              	cout<<fixed<<setprecision(4)<<b<<" ";
              	cout<<fixed<<setprecision(4)<<c<<" ";
              	cout<<fixed<<setprecision(4)<<d;
              	return 0;
              }
              
              • 0
                @ 2023-5-22 16:24:16

                #include<bits/stdc++.h> usinusing namespace std; int main() { double r; cin>>r; cout<<fixed<<setprecision(4)<<r2<<" "; cout<<r3.141592<<" "; cout<<3.14159r*r;

                return 0;
                

                }

                • 0
                  @ 2023-4-19 16:24:43
                  #include<iostream> 
                  #include<iomanip>
                  using namespace std;
                  int main(){
                  	double a,b,c,d;
                  	cin>>a;
                  	b=2*a;
                  	c=2*3.14159*a;
                  	d=3.14159*a*a;
                  	cout<<fixed<<setprecision(4)<<b<<" ";
                  	cout<<fixed<<setprecision(4)<<c<<" ";
                  	cout<<fixed<<setprecision(4)<<d;
                  	return 0;
                  
                  • 0
                    @ 2023-4-11 17:44:34

                    124466

                    • 0
                      @ 2023-3-29 17:10:13
                      #include<iostream> 
                      #include<iomanip>
                      using namespace std;
                      int main(){
                      	double a,b,c,d;
                      	cin>>a;
                      	b=2*a;
                      	c=2*3.14159*a;
                      	d=3.14159*a*a;
                      	cout<<fixed<<setprecision(4)<<b<<" ";
                      	cout<<fixed<<setprecision(4)<<c<<" ";
                      	cout<<fixed<<setprecision(4)<<d;
                      	return 0;
                      }
                      
                      • 0
                        @ 2023-3-29 17:09:59
                        #include<iostream> 
                        #include<iomanip>
                        using namespace std;
                        int main(){
                        	double a,b,c,d;
                        	cin>>a;
                        	b=2*a;
                        	c=2*3.14159*a;
                        	d=3.14159*a*a;
                        	cout<<fixed<<setprecision(4)<<b<<" ";
                        	cout<<fixed<<setprecision(4)<<c<<" ";
                        	cout<<fixed<<setprecision(4)<<d;
                        	return 0;
                        }
                        
                        • -2
                          @ 2023-3-22 13:37:00

                          #include<iostream>

                          #include<iomanip>

                          using namespace std;

                          int main(){

                          double a,b,c,d;

                          cin>>a;

                          b=2*a;

                          c=23.14159a;

                          d=3.14159aa;

                          cout<<fixed<<setprecision(4)<<b<<" ";

                          cout<<fixed<<setprecision(4)<<c<<" ";

                          cout<<fixed<<setprecision(4)<<d;

                          return 0;

                          }

                          • -3
                            @ 2023-3-29 14:04:28
                            #include<iostream> 
                            #include<iomanip>
                            using namespace std;
                            int main(){
                            	double a,b,c,d;
                            	cin>>a;
                            	b=2*a;
                            	c=2*3.14159*a;
                            	d=3.14159*a*a;
                            	cout<<fixed<<setprecision(4)<<b<<" ";
                            	cout<<fixed<<setprecision(4)<<c<<" ";
                            	cout<<fixed<<setprecision(4)<<d;
                            	return 0;
                            }
                            
                            • -11
                              @ 2023-3-22 13:35:52

                              Hi😄

                              • 1

                              信息

                              ID
                              572
                              时间
                              1000ms
                              内存
                              256MiB
                              难度
                              5
                              标签
                              递交数
                              433
                              已通过
                              177
                              上传者