| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72716 | 罗子童 | 08打车费用 | C++ | Wrong Answer | 0 MS | 272 KB | 259 | 2024-05-12 15:57:44 |
# include<iostream> using namespace std; int main(){ int b; cin>>b; if(2>=b){ cout<<6; } if(b>2&&b<=10){ cout<<6+(b-2)*1.8; } if(b>10){ cout<<6+(10-2)*1.8+(b-10)*1.8*0.5; } return 0; } /*罗子童 Accepted*/
------Input------
22
------Answer-----
52.8
------Your output-----
31.2