15 条题解

  • 0
    @ 2026-11-1 18:27:46
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
    	long double x;
    	cin >> x ;
    	cout<< fixed << setprecision(3) ;
    	if(x < 5) cout<< -x + 2.5;
    	else if(x < 10) cout<< 2 - 1.5 *(x-3) * (x-3);
    	else cout<< x / 2 - 1.5;
    }
    

    信息

    ID
    856
    时间
    1000ms
    内存
    128MiB
    难度
    4
    标签
    递交数
    602
    已通过
    297
    上传者