Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1514 | 邓小龙 | 08打车费用 | C++ | Accepted | 0 MS | 268 KB | 265 | 2023-10-14 16:37:59 |
# include<iostream> using namespace std; int main() { float s; cin>>s; if(s>10) { cout<<20.4+2.7*(s-10); } else if(s>2) { cout<<6+1.8*(s-2); } else { cout<<"6"; } return 0; }