提交时间:2025-11-05 20:39:43
运行 ID: 73112
#include <bits/stdc++.h> using namespace std; int main( ) { int x; cin>>x; if(x>=0&x<=3) { cout<<3*x-5; } else if(x>3) { cout<<"4"; } else cout<<14-2*x; return 0; }