Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90231 | 蔡佳轩 | 08打车费用 | C++ | Wrong Answer | 0 MS | 272 KB | 255 | 2024-09-08 13:02:20 |
#include <iostream> using namespace std; int main(){ int a; cin>>a; if (a<=2){ cout<<6<<"元"; } if (a>2){ cout<<(a-2)*1.8<<"元"; } if (a>10){ cout<<(a-2)*1.8+0.5<<"元"; } }
------Input------
4
------Answer-----
9.6
------Your output-----
3.6元