7-18 出租车计价 # include<stdio.h> int main() { int w,b; double h,a; scanf("%lf %d",&h,&w); if(h<=3){ a=10 ; }else if(h<=10&&h>3){ a=2.0*h+4.0; } else { a=3*h-6; } if(w>=5){ b=w/5*2; }else b=0; printf("%.0f",a+b); return 0; }