0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 10:18:47 +00:00
OI-codes/Luogu/P1422/P1422.cpp

12 lines
255 B
C++

#include <bits/stdc++.h>
using namespace std;
int a;
int main() {
cin >> a;
cout << fixed << setprecision(1) << (a > 150 ? 0.4463 * 150 + (a > 400 ? 0.4663 * 250 + 0.5663 * (a - 400) : 0.4663 * (a - 150)) : 0.4463 * a) << endl;
return 0;
}