1 条题解

  • 0
    @ 2025-3-10 23:33:08
    //骑车 27 + 23 + x / 3
    //走路 x / 1.2
    
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() 
    {
        double x;
        cin >> x;
        if ( (27+23+(x/3)) < (x/1.2) ) {
            cout << "Bike";
        }
        else if ( (27+23+(x/3)) == (x/1.2) ) {
            cout << "All";
        }
        else {
            cout << "Walk";
        }
        return 0;
    }
    
    • 1

    信息

    ID
    62
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    15
    已通过
    11
    上传者