Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
125372 刘语晗 快递费计算 C++ 编译错误 0 0 MS 0 KB 262 2024-01-23 16:50:33

Tests(0/0):


#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==1&&b<=1){ cout<<8; } else if(a==1&&b>1){ cout<<8+b-1); } else if(a==0&&b<=1){ cout<<10; } else if(a==0&&b>1){ cout<<10+(2*(b-1)); } return 0; }


测评信息: