Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164710 王垚植 【基础题】的士费 C++ Accepted 1 MS 276 KB 245 2026-11-07 11:29:46

Tests(4/4):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double x,money; cin>>x; if (x<=3){ money=8; } else{ money=8+(x-3)*1.6; } cout<<fixed<<setprecision(1)<<money<<endl; return 0; }