Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
582 | 邓小龙 | 08打车费用 | C++ | Accepted | 0 MS | 256 KB | 284 | 2022-12-02 20:04:33 |
# 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); cout<<fee; return 0; }