| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 119931 | 罗睿妍 | 11计算分段函数的值 | C++ | Wrong Answer | 1 MS | 276 KB | 200 | 2025-05-21 21:11:51 |
#include <iostream> using namespace std; int main() { double x,y; cin>>x; if(x<5)y=x+2.5; else if(x<10)y=2-1.5*(x-3)*(x-3); else y=x*x-1.5; cout<<y; return 0; }
------Input------
17.6
------Answer-----
7.300
------Your output-----
308.26