提交时间:2023-11-04 15:48:09
运行 ID: 30215
#include<bits/stdc++.h> using namespace std; int main() { 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; }