提交时间:2024-03-06 13:05:38

运行 ID: 135677

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