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

Tests(0/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("%f\n",fee); return 0; }


Run Info:

------Input------
7
------Answer-----
15
------Your output-----
15.000000