Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96937 | 张德皓 | 08打车费用 | C++ | Wrong Answer | 1 MS | 264 KB | 288 | 2024-11-09 21:10:32 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a; cin>>a; if(a<=2){ cout<<"6"; } else if(10>=a>2){ cout<<6+1.8*(a-2); } else if(a>10){ cout<<6+8*1.8+((1.8+1.8*0.5)*(a-10)); } return 0; }
------Input------
4
------Answer-----
9.6
------Your output-----