| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65720 | 李雨昊 | 08打车费用 | C++ | Wrong Answer | 1 MS | 268 KB | 297 | 2024-02-03 09:34:27 |
#include<iostream> #include<cstdio> using namespace std; int main() { int a,b = 6,c = 1.8,d = 2.7; double t; cin>>a; if (a<= 2){ t=6; cout<<t; } if (a>2 && a<=10){ t=6+(a-2)*c; cout<<t; } if(a>10){ t = 6+(10-2)*1.8+(a-10)*2.7; cout<<t; } return 0; }
------Input------
4
------Answer-----
9.6
------Your output-----
8