AC

123Y456 · 发布于 2025-10-02 · 浏览 297 回复 0

include

using namespace std;

int main() {

int n;
double a, b, c;
cin >> n;
if (n <= 150) {
	a = n * 0.4463;
	printf("%.1lf", a);
}
if (400 >= n && n > 150) {
	b = (n - 150) * 0.4663 + 150 * 0.4463;
	printf("%.1lf", b);
}
if (400 < n) {
	c = (n - 400) * 0.5663 + (400 - 150) * 0.4663 + 150 * 0.4463;
	printf("%.1lf", c);
}

return 0;

}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复