4 条题解

  • 1
    @ 2023-8-5 12:15:48
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double a;
        cin>>a;
        cout<<fixed<<setprecision(12)<<a<<endl;
        return 0;
    }
    

    emm......注意啊,双精度🧐

    • 0
      @ 2023-6-18 17:58:09
      #include <iostream>
      #include <iomanip>
      using namespace std;
      int main()
      {
          double a;
          cin>>a;
          cout<<fixed<<setprecision(12)<<a;//这个代码很难背。
          return 0;
      }
      
      • 0
        @ 2023-5-21 15:49:49

        这道题也挺简单的,跟前面3位的没啥区别,一看就老演员了

        代码:

        #include<cstdio>
        using namespace std;
        int main()
        {
        double x;
        scanf("%lf",&x);
        printf("%.12lf",x);
        }
        
        
        
        • 0
          @ 2023-5-20 17:23:05
          #include <iostream>
          #include <iomanip> 
          using namespace std;
          int main(){
              double n; 
              cin >> n; 
              cout << fixed << setprecision(12) << n << endl;
              return 0;
          }
          
          • @ 2023-5-21 15:51:20

            可以给你代码加上cpp 效果会很好

        • 1

        信息

        ID
        92
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        递交数
        262
        已通过
        194
        上传者