Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
17610 lulu 根据x值,求y值 C++ Accepted 0 MS 244 KB 221 2023-05-14 18:32:53

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main()// 3X-5 0≤X≤3 4 X>3 14-2X X<0 { int x,y; cin>>x; if(0<=x&&x<=3) y=3*x-5; if(x>3) y=4; if(x<0) y=14-2*x; cout<<y; return 0; }


Judgement Protocol: