0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 11:31:59 +00:00
OI-codes/Luogu/problem/P1422/P1422.cpp
2021-09-30 13:16:56 +08:00

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;
}