| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159118 | 钱炜懿 | 08打车费用 | C++ | Wrong Answer | 1 MS | 272 KB | 335 | 2026-08-25 20:52:41 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,x; cin>>a; if(a<=2){ x==6; } else{ if(a>2||a<=10) { x==6+a*1.8; } else{ if(a>10) { int b=a-10; x==6+a*1.8+b*(1.8+1.8/2); } } } cout<<a<<x; return 0; }
------Input------
4
------Answer-----
9.6
------Your output-----
40