1 条题解

  • 0
    @ 2024-12-24 9:59:28

    C++ :

    #include <iostream>
    #include <cstdio>
    using namespace std;
    
    int main() {
      double w,p;
      cin>>w;
      if(w<=10){
    		p=w*2.5;
      }
      else{
    		p=(w-10)*4+25;
      }
      printf("%0.1f\n",p);
        return 0;
    }
    
    
    • 1

    信息

    ID
    1578
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者