提交时间:2024-01-04 14:45:17
运行 ID: 36733
#include<bits/stdc++.h> using namespace std; int main(){ double a; cin >> a; if (a >= 2000 && a < 3000){ a *= 0.8; cout << fixed << setprecision(1) << a; }else if (a >= 3000 && a < 4000){ a *= 0.7; cout << fixed << setprecision(1) << a; }else if (a >= 4000){ a *= 0.6; cout << fixed << setprecision(1) << a; }else { cout << fixed << setprecision(1) << a; } return 0; }