5 条题解

  • 3
    @ 2022-12-23 16:21:59
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        double a, b, c;
        cin >> a >> b >> c;
        cout << fixed << setprecision(3) << (a + b) / (b + c);
        return 0;
    }
    
    • 2

      这是一个比较简单的题;输入a,b,c三个数,a,b,c都必须定义成double; 上代码!*

      cout << fixed << setprecision(3) << (a + b) / (b + c);
      
      • 1
        @ 2023-8-16 20:41:58

        日常半夜做题之第五题👀️

        上代码🚀️

        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
            double a , b , c;
            cin >> a >> b >> c;
            printf("%.3f",(a + b) / (b + c));//直接套公式
            return 0;
        }
        

        已AC,放心食用👍

        • 0
          @ 2023-10-1 21:33:44
          #include <bits/stdc++.h>
          using namespace std;
          double a, b, c;
          int main()
          {
              cin >> a >> b >> c;
              cout << fixed << setprecision(3) << (a + b) / (b + c);
              return 0;
          }
          
          
          • 0
            @ 2022-3-6 17:22:34

            #include<bits/stdc++.h> using namespace std; int main() { double a,b,c; cin>>a>>b>>c; cout<<fixed<<setprecision(3)<<(a+b)/(b+c); return 0; }

            • 1

            信息

            ID
            1234
            时间
            1000ms
            内存
            256MiB
            难度
            5
            标签
            递交数
            456
            已通过
            168
            上传者