| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134051 | 鄢晨曦 | 08打车费用 | C++ | Accepted | 1 MS | 272 KB | 239 | 2025-10-25 15:17:30 |
#include<bits/stdc++.h> using namespace std; int main(){ int s; double p; cin>>s; if(s<=2){ p=6; } if(s>2&&s<=10){ p=6+(s-2)*1.8; } if(s>10){ p=6+8*1.8+(s-10)*(1.8*1.5); } cout<<p<<endl; return 0; }