//满意请采纳#includeint main(){ double x,y; scanf("%lf",&x); if(x<1)y=x; else if(x>=1&&x<20)y=2*x+1; else if(x>=20)y=3*x+2; printf("%g\n",y); return 0;}