求救!!!

B2046 骑车与走路

caoyanyang @ 2024-11-11 08:31:44


#include<iostream>
using namespace std;
int main(){
    double a;
    double qc=0,zl=0;
    cin>>a;
    qc=27+23+a/3;
    zl=a/1.2;
    if(qc>zl){
        cout<<"Bike";
    }
    else if(zl>qc){
        cout<<"Walk";
    }
    else{
        cout<<"All";
    }
    return 0;
}
```[提交记录](https://www.luogu.com.cn/record/188089284)

by kevin110609 @ 2024-11-11 08:51:12

qc,zl应该选时间短的,你写反了


by caoyanyang @ 2024-11-13 09:05:33

@kevin110609 谢谢


|