Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
90476 | 王煜鑫 | 08打车费用 | C++ | Accepted | 1 MS | 272 KB | 272 | 2024-09-15 10:51:38 |
#include<iostream> using namespace std; int main(){ int n; double a; cin>>n; if(n<=2){ a=6; } else if(n>2 && n<=10){ a=(n-2)*1.8+6; } else if(n>10){ a=8*1.8+(n-10)*1.8*1.5+6; } cout<<a; }