```cpp
#include<bits/stdc++.h>
using namespace std;
int main() {
double n;
cin >> n;
cout << fixed;
if (n <= 150)
cout << setprecision(1) << n * 0.4463;
else if (n <= 400)
cout << setprecision(1) << 150 * 0.4463 + ((n - 150) * 0.4663);
else
cout << setprecision(1) << 150 * 0.4463 + 250 * 0.4663 + (n - 400) * 0.5663;
}
```
@[TYC81270901](/user/800763)
by Super_excavator @ 2023-03-25 21:40:50
```n```要```double```,**公式**哪里也有错
by Super_excavator @ 2023-03-25 21:41:50