Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1497 吴奕希 08打车费用 C++ Accepted 0 MS 264 KB 283 2023-09-30 19:54:39

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { float s; cin>>s; if(s>10) { cout<<20.4+2.7*(s-10)<<endl; } else if(s>2) { cout<<6+1.8*(s-2)<<endl; } else { cout<<"6"<<endl; } return 0; }