| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65721 | 李雨昊 | 08打车费用 | C++ | Accepted | 2 MS | 276 KB | 263 | 2024-02-03 09:52:46 |
#include<iostream> #include<cstdio> using namespace std; int main() { int m; double s; cin>>m; s = 0; if (m>10){ s = 6+(10-2)*1.8+(m-10)*2.7; } else{ if(m>2){ s = 6+(m-2)*1.8; } else{ s=6; } } cout<<s; return 0; }