| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 69100 | sh25_ganzy | 分段函数 | C++ | Accepted | 0 MS | 244 KB | 265 | 2025-10-10 19:27:56 |
#include<bits/stdc++.h> using namespace std; int main(){ float x,f; cin>>x; 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; }