Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
125258 | 梁煜然 | 快递费计算 | C++ | 解答错误 | 0 | 0 MS | 236 KB | 257 | 2024-01-23 16:39:19 |
#include<iostream> using namespace std; int main(){ int s,w; cin>>s>>w; if(s==1){ if(w<=1){ cout<<"8"; } if(w>1){ cout<<7+w; } } if(s==0){ if(w<=1){ cout<<"10"; } if(w>1){ cout<<7+2*w; } } return 0; }