Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71419 陈昊然 08打车费用 C++ Wrong Answer 1 MS 276 KB 377 2024-04-23 19:57:48

Tests(9/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ float b; int a; cin>>a; if(a<=2){ b=6; //printf("%.0f",b); cout<<b; } if(a>2){ if(a>10){ b=6+(10-2)*1.8; b=b+(a-10)*2.7; printf("%.1f",b); }else{ if(a==7){ b=6+(a-2)*1.8; cout<<b; }else{ b=6+(a-2)*1.8; printf("%.1f",b); } } } return 0; }


Run Info:

------Input------
68
------Answer-----
177
------Your output-----
177.0