| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62716 | 申明宇 | 08打车费用 | C++ | Accepted | 1 MS | 272 KB | 258 | 2023-12-24 20:29:56 |
#include<iostream> #include<iomanip> using namespace std; int main() { int b; cin>>b; if(b<2){ cout<<6; } if (b>2&&b<10){ cout<<(b-2)*1.8+6; } if (b>10){ cout<<(b-10)*2.7+6+8*1.8; } return 0; }