0
点赞
收藏
分享

微信扫一扫

1050:骑车与走路

乐百川 2022-01-20 阅读 56
c++

#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 条评论