Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
65598 laichihao 分段函数 C++ Compile Error 0 MS 0 KB 244 2025-05-23 14:48:14

Tests(0/0):


#include<iostream> using namespace std; int main() { float x; if(0<=x<5){ cout<<fixed<<setprecision(3)<x+2.5; } if(5<=x<10){ cout<<fixed<<setprecision(3)<2-1.5*(x-3)*(x-3); } if(10<=x<20){ cout<<fixed<<setprecision(3)<x/2-1.5; } }


Judgement Protocol: