2 条题解

  • 3
    @ 2023-7-27 18:06:13

    #include using namespace std; int main() { double a,b; scanf("%lf",&a); if(a<=1) b=1.5a; else b=1.51+(a-1)*2.3; printf("%.2lf\n",b); return 0; }

    • 1
      @ 2025-1-26 21:48:48

      #include<bits/stdc++.h> using namespace std; int main () { double x,y; scanf("%lf",&x); if(x<=1) y=1.5x; if(x>1) y=1.5+(1.5+0.8)(x-1); { printf("%.2f\n",y);return 0;} return 0; }

      • 1

      信息

      ID
      314
      时间
      1000ms
      内存
      256MiB
      难度
      6
      标签
      (无)
      递交数
      515
      已通过
      160
      上传者