2 条题解

  • 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;
    }
    
    
    • 0
      @ 2025-11-8 11:41:49
      #include<bits/stdc++.h>
      using namespace std;
      double x,z;
      int s;
      int main(){
          //风雪压我两三年,我直接被风雪压死了
          cin>>x>>z;
          z/=10;
          s=x*z;
          s+=5;
          s/=10;
          s*=10;
          cout<<s;
          return 0;
      
      }
      
      • 1

      信息

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