| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81665 | 勾好 | 08打车费用 | C++ | Accepted | 1 MS | 272 KB | 235 | 2024-07-12 15:01:56 |
#include<iostream> using namespace std; int main(){ int a = 2,b = 6,c = 10,f; float d = 1.8,e = 2.7; cin>>f; if(f <= a){ cout<<b; }else if(f <= c){ cout<<b+(f-a)*d; }else{ cout<<b+8*d+(f-10)*e; } return 0; }