3 条题解
-
-1
#include <iostream> using namespace std;
int main() { int a, b, c; cin >> a >> b >> c;
int total = 0; if (a <= 5) { total += a * 20; } else if (a <= 10) { total += a * 18; } else { total += a * 15; } if (c == 0) { total += b * 20; } cout << total << endl; return 0;
}
信息
- ID
- 939
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 2
- 标签
- 递交数
- 152
- 已通过
- 35
- 上传者