mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-09 01:58:48 +00:00
12 lines
255 B
C++
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;
|
|
}
|