提交时间:2020-08-20 14:15:57

运行 ID: 5878

#include <iostream> #include <cstdio> #include <iomanip> #include <cmath> using namespace std; int main () { int y; double x; cin >> y; if (y<=150) { x = y*0.4463; } else if (y>=150 && y<400) { x = y*0.4663; } else if (y>= 401) { x = y*0.5663; } printf("%.1f", x); return 0; }