Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101287 任紫谦 08打车费用 C++ Wrong Answer 0 MS 272 KB 348 2024-12-14 18:21:00

Tests(2/10):


Code:

#include <iostream> using namespace std; int main(){ int m; double s=0; cin>>m; if(m<=2){ s=6; }else{ if(m>2&&m<=10){ s=6+(m-2)*1.8; }else{ if(m>10){ s=6+(m-2)*1.8+(m-10)*1.8*1.5; } } } cout<<s<<endl; }


Run Info:

------Input------
22
------Answer-----
52.8
------Your output-----
74.4