dzy35040124 @ 2024-05-29 20:29:56
#include<stdio.h>
int main()
{
int a;
double b;
scanf("%d",&a);
if(a<=150)
{
b=a*0.4463;
printf("%.1lf",b);
}
if(a>=151&&a<=400)
{
b=(a-150)*0.4663+150*0.4463;
printf("%.1lf",b);
}
if(a>=401)
{
b=150*0.4463+249*0.4663+(a-400)*0.5663;
printf("%.1lf",b);
}
return 0;
}
by hnxx123456 @ 2024-05-29 20:50:20
第19行是250*0.4663