| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66077 | 欧阳槊远 | 08打车费用 | C++ | Wrong Answer | 0 MS | 268 KB | 263 | 2024-03-02 12:44:30 |
#include<bits/stdc++.h> using namespace std; int main() { int lu; cin>>lu; if(lu<=2){ cout<<6; return 0; } if(10>=lu>=2){ cout<<6+(lu-2)*1.8; return 0; } if(lu>=10){ cout<<6+(10-2)*1.8+(lu-10)*(1.8*0.5+1.8); } return 0; }
------Input------
4
------Answer-----
9.6
------Your output-----