| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121669 | 周博涵 | 08打车费用 | C++ | Wrong Answer | 1 MS | 272 KB | 322 | 2025-06-07 19:31:56 |
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ int km; double s; cin>>km; s=0; if(km>10){ s=6+8*1.8+(km-10)*1.8*1.5; } else{ if(km>2){ s=6+8*1.8; } else{ s=6; } } cout<<s; }
------Input------
4
------Answer-----
9.6
------Your output-----
20.4