1 条题解
-
2
#include <bits/stdc++.h> using namespace std; int main() { int weight; char urgent; cin >> weight >> urgent; int total = 8; if (weight > 1000) { int over = weight - 1000; int count = (over + 499) / 500; total += count * 4; } if (urgent == 'y') { total += 5; } cout << total << endl; return 0; }
- 1
信息
- ID
- 30942
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- (无)
- 递交数
- 27
- 已通过
- 7
- 上传者