1050:骑车与走路

乐百川

关注

阅读 56

2022-01-20

#include <iostream>

using namespace std;

int main()
{
    int Bt,Wt,x;
    cin >>x;
    Bt=x/3+50;Wt=x/1.2;
    if(Bt>Wt){
        cout <<"Walk"<<endl ;
    }
    else if(Bt<Wt){
    cout << "Bike" << endl;
    }
    else {
    cout << "All" << endl;
    }
    return 0;
}

精彩评论(0)

0 0 举报