2 solutions

  • 1
    @ 2025-1-12 18:50:49

    #include<bits/stdc++.h>

    using namespace std;

    int main()

    {

    double x;
    
    cin>>x;
    
    cout<<fixed<<setprecision(3)<<x<<endl;
    
    return 0;
    

    }

    • 0
      @ 2024-4-3 23:44:25

      #include

      #include

      using namespace std;

      int main()

      {

      float x=12.34521;

      cin>>x;cout <<setprecision(3) <<std::fixed<<x <<endl;

      return 0;

      }

      • 1

      Information

      ID
      6836
      Time
      1000ms
      Memory
      512MiB
      Difficulty
      1
      Tags
      # Submissions
      22
      Accepted
      14
      Uploaded By