Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116818 李林叡 08打车费用 C++ Accepted 1 MS 280 KB 194 2025-04-12 16:19:23

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int A; cin>>A; if(A<=2) cout<<"6"; if(A<=10&&A>2) cout<<6+(A-2)*1.8; if(A>10) cout<<6+(10-2) *1.8+(A-10)*2.7; return 0; }