4 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;
    }
    
    • 0
      @ 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
        @ 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; }

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

          oijweihfwhfiehfjdwe

          • 1

          Information

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