Submit Time:2026-03-12 15:33:43
运行 ID: 68447
#include <iostream> #include <iomanip> using namespace std; int main() { int totalMoney; cin >> totalMoney; double actualMoney; if (totalMoney >= 4000) { actualMoney = totalMoney * 0.6; } else if (totalMoney >= 3000) { actualMoney = totalMoney * 0.7; } else if (totalMoney >= 2000) { actualMoney = totalMoney * 0.8; } else { actualMoney = totalMoney; } cout << fixed << setprecision(1) << actualMoney << endl; return 0; }