1 条题解

  • 0
    @ 2022-12-24 12:01:06
    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
        int len;
        cin >> len;
        double t1, t2; //骑车、走路时间
        t1 = 27 + 23 + len / 3.0;
        t2 = len / 1.2;
        if (t1 < t2)
            cout << "Bike";
        else if (t2 < t1)
            cout << "Walk";
        else
            cout << "All";
        return 0;
    }
    
    • 1

    信息

    ID
    270
    时间
    1000ms
    内存
    128MiB
    难度
    5
    标签
    (无)
    递交数
    219
    已通过
    79
    上传者