60分求救!请各位大佬帮忙!

P1422 小玉家的电费

```cpp #include <bits/stdc++.h> using namespace std; int main () { double n; cin >> n; if (n <= 150) printf ("%.1lf", 0.4463 * n); else if (n >= 151 && n <= 400) printf ("%.1lf", 150 * 0.4463 + (n - 150) * 0.4663); else printf ("%.1lf", 150 * 0.4463 + (n - 150 - (n - 400)) * 0.4663 + (n - 400) * 0.5663); return 0; } ```
by Perfect_Youth @ 2023-07-27 10:35:17


@[gjm123456](/user/522406)
by Perfect_Youth @ 2023-07-27 10:35:38


@[Perfect_Youth](/user/725816) 谢谢了
by gjm123456 @ 2023-07-27 14:04:16


@[gjm123456](/user/522406) 不用谢
by Perfect_Youth @ 2023-07-27 14:07:20


https://www.luogu.com.cn/user/725816 ###### 厉害 1. - | | | | -----------: | -----------: | | | | | | |
by Tony914 @ 2023-08-11 10:35:29


|