Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5781 | 邱一涵 | 08打车费用 | C++ | Accepted | 0 MS | 268 KB | 330 | 2024-12-14 20:03:29 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int a; float b; cin>>a; if(a>10){ b=(a-10)*1.8*1.5+(10-2)*1.8+6; }else if(a>2){ b=(a-2)*1.8+6; }else{ b=6; } cout<<b<<endl; return 0; }