山东智趣岛论坛

标题: 1050 [打印本页]

作者: guqingchen    时间: 2024-2-17 12:21
标题: 1050
[C++] 纯文本查看 复制代码
#include<bits/stdc++.h>
using namespace std;
int main(){
        int s;
        double b,w;
        cin>>s;
        b=50+s/3.0;
        w=s/1.2;
        if(b==w){
                cout<<"All";
        }
        if(b>w){
                cout<<"Walk";
        }
        if(b<w){
                cout<<"Bike";
        }
        return 0;
}





欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3