#include<iostream>
#include<cstdio>
#include<cstdlib>
using namespace std;
int main()
{double x,y;
cin>>x;
if(x<=150)
{y=0.4463*x;
printf("%.1lf",y);}
if(x>=150&&x<=400)
{y=150*0.4463+0.4663*(x-150);
printf("%.1lf",y);}
if(x>=401)
{y=150*0.4463+0.4663*250+0.5663*(x-400);
printf("%.1lf",y);}
return 0;
}
小玉家的电费
于 2018-01-24 00:02:40 首次发布