Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
581 邓小龙 08打车费用 C++ Wrong Answer 0 MS 252 KB 295 2022-12-02 20:01:17

Tests(2/10):


Code:

# include<stdio.h> # include<iostream> using namespace std; int main(){ int s; float fee; cin>>s; if(s<=2) fee=6.0; else if(s<=10) fee=6+1.8*(s-2); else fee=6+1.8*8+1.8*1.5*(s-10); printf("%.0f\n",fee); return 0; }


Run Info:

------Input------
82
------Answer-----
214.8
------Your output-----
215