Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120999 | 李亚婷 | 08打车费用 | C++ | Wrong Answer | 1 MS | 272 KB | 209 | 2025-06-03 14:58:54 |
#include <iostream> using namespace std; int main(){ int n; cin>>n; double s; if(n<=2){ s=6;} if(2<n<=10){ s=6+(n-2)*1.8;} if(n>10){ s=6+8*1.8+(n-10)*1.8*1.5; } cout<<s<<endl; }
------Input------
0
------Answer-----
6
------Your output-----
2.4