@榜一chaser 我无语了 这题哪位大佬能搞个题解

10 comments

  • @ 2024-7-15 16:12:32

    6

    • @ 2024-7-14 21:16:10

      ?

      🤡 1
      • @ 2024-7-14 15:25:27

        陈锦润的更好理解,你用他的代码会比我的更好用一点

        • @ 2024-7-14 15:24:31

          主要是运用到了头文件中的setprecision这个知识,比较不常见,很少运用,主要偏用于计算

          • @ 2024-7-14 15:18:04

            榜一得题解比较难,运用到一个陌生的头文件

            👍 1
            • @ 2024-7-14 15:17:22
              #include<iostream>
              #include<iomanip>
              
              using namespace std;
              
              int main()
              {
                  float x, y, a, b;
                  cin >> x >> a >> y >> b;
                  cout << fixed << setprecision(2);
                  cout << (y * b - x * a) / (b - a)<< endl;
                  return 0;
              }
              
              • @ 2024-7-14 15:16:28

                男神陈锦润,我是你头号粉丝

                🤔 2
                • @ 2024-7-14 15:16:07

                  陈锦润就是帅

                  😕 2
                  • @ 2024-7-13 16:42:51
                    #include<bits/stdc++.h>
                    
                    using namespace std;
                    
                    int main()
                    {
                        double a,b,c,d;
                        cin >> a >> b >> c >> d;
                    
                        printf("%.2f",(c * d - a * b) / (d - b));
                    
                        return 0;
                    }
                    
                    🤣 1
                    • @ 2024-7-13 16:44:15

                      这道题主要考点在于会不会保留小数和学没学过奥数

                    • @ 2024-7-13 16:44:52

                      这道题就是牛吃草的变形

                    • @ 2024-7-13 16:45:14

                      说实话公式我也是网上查的

                    • @ 2024-7-13 16:46:12

                      我要是学过奥数就不用查公式了

                    • @ 2024-7-13 16:47:58

                      保留小数格式见上

                  • @ 2024-7-12 20:34:23
                    • 1

                    Information

                    ID
                    458
                    Time
                    1000ms
                    Memory
                    256MiB
                    Difficulty
                    4
                    Tags
                    # Submissions
                    118
                    Accepted
                    56
                    Uploaded By