0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-09 02:18:51 +00:00
OI-codes/Luogu/P1422/P1422.cpp

12 lines
255 B
C++
Raw Normal View History

2021-09-30 05:16:56 +00:00
#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;
}