1 条题解

  • 1
    @ 2024-10-1 14:58:25
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        //还是要撸代码的,神。
        float a,b,c,d;
        int tt;
        cin>>a>>b;
        b/=10;
        c=a*b;
        c = round(c);
        tt=int(c)%10;
        if(tt>=5) d=c+(10-tt);
        else d=c-tt;
        cout<<d;         
    return 0;
    }
    
    
    • 1

    信息

    ID
    412
    时间
    1000ms
    内存
    64MiB
    难度
    6
    标签
    递交数
    63
    已通过
    18
    上传者