6 solutions

  • 2
    @ 2025-7-3 15:26:49
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double r;
        cin>>r;
        cout<<fixed<<setprecision(4)<<2*r<<" ";
        cout<<fixed<<setprecision(4)<<2*3.14159*r<<" ";
        cout<<fixed<<setprecision(4)<<3.14159*r*r;
        return 0;
    }
    
    • 1
      @ 2025-10-25 13:56:46

      #include<bits/stdc++.h> using namespace std; int main() { double r; cin>>r; cout<<fixed<<setprecision(4)<<2r<<" "; cout<<fixed<<setprecision(4)<<23.14159r<<" "; cout<<fixed<<setprecision(4)<<3.14159r*r; return 0; }

      • 1
        @ 2025-10-12 16:14:12
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            double n;
            cin>>n;
            printf("%.4lf ",2*n);
        	printf("%.4lf ",2*3.14159*n);
        	printf("%.4lf ",3.14159*n*n);
            return 0;
        }
        
        
        • 0
          @ 2026-2-12 10:33:41

          #include<bits/stdc++.h> using namespace std; int main() { double r; cin>>r; double d=2r; double c=23.14159r; double s=3.14159r*r; cout<<fixed<<setprecision(4)<<d<<" "<<c<<" "<<s;

          }

          • -1
            @ 2025-3-8 14:58:08

            #include<bits/stdc++.h> using namespace std; int main() { double r; cin>>r; double d=2r; double c=23.14159r; double s=3.14159r*r; cout<<fixed<<setprecision(4)<<d<<" "<<c<<" "<<s; return 0; }

            • -5
              @ 2024-9-21 10:12:17

              oijweihfwhfiehfjdwe

              • 1

              Information

              ID
              844
              Time
              1000ms
              Memory
              256MiB
              Difficulty
              1
              Tags
              (None)
              # Submissions
              336
              Accepted
              101
              Uploaded By