| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 161897 | 王翊金恩 | 08打车费用 | C++ | Accepted | 2 MS | 272 KB | 261 | 2026-10-07 17:35:36 |
#include<bits/stdc++.h> using namespace std; int main() { double a; cin>>a; double sum; if(a<=2) { sum=6; } else if(a>=2&&a<=10) { sum=6+(a-2)*1.8; } else { sum=6+8*1.8+(a-10)*1.8*1.5; } cout<<sum<<endl; return 0; }