| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159358 | 江佳航 | 08打车费用 | C++ | Wrong Answer | 1 MS | 272 KB | 472 | 2026-08-28 19:00:02 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double x,y; cin>>x; if(x<=2) { y=6; } else if(2<x<=10) { y=1.8*x+2.4; } if(x>10) { y=2.7*x-6.6; } printf("%.1lf",y); return 0; }
------Input------
7
------Answer-----
15
------Your output-----
15.0