25 条题解

  • 0
    @ 2025-2-15 11:45:41

    #include<bits/stdc++.h> using namespace std; int main() { double x,y; cin>>x; if(0<=x and x<5) y = -x+2.5; if(5<=x and x<10){ y = 2-1.5*(x-3)*(x-3); } if(10<=x and x<20)y = x/2-1.5; printf("%.3lf",y); return 0; }

    信息

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