1 条题解

  • 0
    @ 2023-10-26 10:17:24

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        double s=0;
        int a,b,c,d,e,f,g,h,i,j;
        cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j;
        s+=a*28.9+b*32.7+c*45.6+d*78+e*35+f*86.2+g*27.8+h*43+i*56+j*65;
        cout<<fixed<<setprecision(1)<<s;
        return 0;
    }
    
    • 1

    信息

    ID
    936
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    4
    已通过
    3
    上传者