| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 68447 | 李梓萌 | 2023经开区信息技术合格性考试-1 | C++ | 通过 | 100 | 0 MS | 248 KB | 513 | 2026-03-12 15:33:43 |
#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; }