#include<stdio.h>标签:11,10,函数,int,sum,复合,else,printf From: https://blog.51cto.com/u_15766378/5787583
int main()
{
int a=0;
int sum;
int b;
scanf("%d",&a);
if(a<1)
{
printf("%d\n",a);
}
else if(1<=a<10)
{
sum=2*a-1;
printf("%d\n",sum);
}
else if(a>=10)
{
b=3*a-11;
printf("%d\n",b);
}
return 0;
}