3 条题解

  • 0
    @ 2025-11-26 21:08:09

    Written by @Yue_chen

    题意:

    输出三数相乘。

    思路:

    注意输入有小数,并且输出保留两位

    时间复杂度O(1)

    AC代码:

    #include<bits/stdc++.h>
    using namespace std;
    
    using i64 = long long;
    
    void solve() {
        long double x, y, z; cin>>x>>y>>z;
        cout<<fixed<<setprecision(2)<<(x*y*z)<<"\n";
    }
    
    signed main(void) {
        ios::sync_with_stdio(false); cin.tie(nullptr);
        
        int t=1;// cin>>t;
        while (t--) solve();
        return 0;
    } 
    
    • 0
      @ 2025-11-3 11:04:13

      嗝儿

      a, b, c = map(float,(input().strip().split()))
      print(f"{a * b * c:.2f}")
      
      
      • 0
        @ 2025-9-7 14:25:21
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            float l,w,h;
            cin>>l>>w>>h;
            l=l*w*h;
            printf("%-9.2f",l);//左对齐总长度为九保留小数点后两位输出浮点数
            return 0;
        }
        
        • 1

        信息

        ID
        119
        时间
        1000ms
        内存
        256MiB
        难度
        4
        标签
        递交数
        135
        已通过
        64
        上传者