提交时间:2024-01-23 16:36:28

运行 ID: 125230

#include<iostream> #include<cstdio> using namespace std; int main() { int a; cin>>a; if(a<1){cout<<a; }else if(1<=a&&a<10){cout<<2*a-1; }else if(a>=10){cout<<3*a-11; } return 0; }