Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5780 先明缜 08打车费用 C++ Accepted 0 MS 256 KB 432 2024-12-14 19:59:01

Tests(10/10):


Code:

#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+(10-2)*1.8+6<<endl; } return 0; }