Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100565 | 袁龙浩 | 08打车费用 | C++ | Compile Error | 0 MS | 0 KB | 481 | 2024-12-08 13:53:31 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a; if(2<10<a){ cout<<6+1.8*10+1.8*1.5*(a-2-10); } else{ if(2<a<10){ cout<<6+1.8*(a-2); } else{ if(a<2){ cout<<6; } } return 0; }
Main.cc: In function 'int main()': Main.cc:9:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(2<10