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;
    } 
    

    信息

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