提交时间:2025-10-10 19:27:22

运行 ID: 69099

#include<bits/stdc++.h> using namespace std; int main(){ float n,f; cin>>n; if(x<5){ f=2.5-x; }else if(x<10){ f=2-1.5*(x-3)*(x-3); }else{ f=x/2-1.5; } cout<<fixed<<setprecision(3)<<f; return 0; }