Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
135678 | 陈家宝 | 快递费计算 | C++ | 通过 | 100 | 0 MS | 252 KB | 221 | 2024-03-06 13:06:44 |
#include<bits/stdc++.h> using namespace std; int main () { int s,w; cin>>s>>w; if(s==1){ if(w>1)cout<<1*(w-1)+8; else cout<<8; } else{ if(w>1)cout<<2*(w-1)+10; else cout<<10; } return 0; }