Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5779 | 先明缜 | 08打车费用 | C++ | Wrong Answer | 0 MS | 264 KB | 431 | 2024-12-14 19:55:14 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int t; cin>>t; if(t<2){ cout<<6<<endl; } else if(t<10){ cout<<(t-2)*1.8+6<<endl; } else{ cout<<(t-10)*1.8*1.5+(t-2)*1.8+6<<endl; } return 0; }
------Input------
68
------Answer-----
177
------Your output-----
281.4