https://www.luogu.org/problem/P1422
#include<iostream>
#include<cstdio>
using namespace std;
int main(void)
{
int a;
cin>>a;
if(a<=150)
printf("%.1f\n", a*0.4463);
else if (a>=151&&a<=400)
printf("%.1f\n", a*0.4663-3);
else
printf("%.1f\n", a*0.5663-43);
return 0;
}
//(0.4663-0.4463)*150=3
//(0.5663-0.4663)*400+3=43