Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
165446 陈开远 【基础题】的士费 C++ Accepted 1 MS 272 KB 245 2026-11-15 14:46:31

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; }