| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81387 | sh25_wuyy | 计算邮资 | C++ | 通过 | 0 MS | 244 KB | 347 | 2026-01-04 17:32:04 |
#include<iostream> using namespace std; int main(){ int weight; char express; cin>>weight>>express; int cost=8; if(weight>1000){ int excess=weight-1000; int extra_units=(excess+499)/500; cost+=extra_units*4; }if (express=='y') { cost+=5; }cout<<cost<<endl; return 0; }