Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1496 | 吴奕希 | 08打车费用 | C++ | Wrong Answer | 0 MS | 264 KB | 283 | 2023-09-30 19:50:33 |
# include<iostream> using namespace std; int main() { float s; cin>>s; if(s>10) { printf("%f", 20.4+2.7*(s-10)); } else if(s>2) { printf("%f", 6+1.8*(s-2)); } else { printf("6"); } return 0; }
------Input------
7
------Answer-----
15
------Your output-----
15.000000