10 条题解

  • 0
    @ 2024-5-29 20:19:25
    #include <iostream>
    using namespace std;
    int main(){
        double a, t1, t2;
        cin >> a;
        t1 =a / 3.0 + 50;
        t2 =a / 1.2;
        if(t1 > t2){
            cout << "Walk" ;
        }
    	else if(t1<t2){
            cout << "Bike";
        }else{
            cout << "All";
        }
        return 0;
    }
    

    信息

    ID
    874
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    1659
    已通过
    401
    上传者