This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

22
LuoGu/RuMen/P1422.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include <iostream>
using namespace std;
int main() {
int a = 0;
double b = 0;
cin >> a;
if (a <= 150) {
b = a * 0.4463;
} else if (a >= 151 && a <= 400) {
b += 150 * 0.4463;
b += (a - 150) * 0.4663;
} else {
b += 150 * 0.4463;
b += (400 - 150) * 0.4663;
b += (a - 400) * 0.5663;
}
b = int((b * 10) + 0.5) / 10.0;
cout << b << endl;
return 0;
}