提交时间:2023-05-14 18:32:53
运行 ID: 17610
#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; }