Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5778 邱一涵 08打车费用 C++ Wrong Answer 0 MS 272 KB 336 2024-12-14 19:54:50

Tests(1/10):


Code:

#include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int a,b; cin>>a; if(a<2){ cout<<6<<endl; }else if(a<10){ cout<<(a-2)*1.8+6<<endl; }else if(a>10){ cout<<(a-10)*1.8*1.5+6+(a-2)*1.8<<endl; } return 0; }


Run Info:

------Input------
68
------Answer-----
177
------Your output-----
281.4