Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134037 李昱龙 08打车费用 C++ Wrong Answer 1 MS 272 KB 338 2025-10-25 15:10:26

Tests(2/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a; double b,c,d,e,f; c =0; d = 0; b = 6; e = 0; f = 0; cin>>a; if(a<=2){ cout<<6; } if(a>2&&a<=10){ c = (a-2)*1.8; b = b+c; cout<<b; } if(a>10){ d = 1.8*1.5; e = (a-10)*d+(a-10-2)*1.8; f = b+e; cout<<f; } return 0; }


Run Info:

------Input------
22
------Answer-----
52.8
------Your output-----
56.4