Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
61150 laichihao 根据x值,求y值 C++ Accepted 0 MS 252 KB 204 2025-02-22 15:26:17

Tests(1/1):


#include <iostream> using namespace std; int main() { int x,y; cin>>x; if(x<0) y=14-2*x; else if(x>3) y=4; else y=3*x-5; cout<<y; return 0; }


Judgement Protocol: