Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5415 | 翟** | 08打车费用 | C++ | Accepted | 0 MS | 256 KB | 288 | 2024-11-16 09:31:04 |
#include <iostream> using namespace std; int main(){ int s; double m=0; cin>>s; if(s<=2){ m=6; } else if(s<=10){ m=6+(s-2)*1.8; } else{ m=6+1.8*8+1.8*1.5*(s-10); } cout<<m<<endl; return 0; }