| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159359 | 江佳航 | 08打车费用 | C++ | Accepted | 1 MS | 272 KB | 462 | 2026-08-28 19:00:57 |
#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; } cout<<y; return 0; }