10 条题解

  • 3
    @ 2022-8-12 21:23:44
    #include <queue>
    #include <math.h>
    #include <stack>
    #include <stdio.h>
    #include <iostream>
    #include <vector>
    #include <iomanip>
    #include <string.h>
    #include <algorithm>
    using namespace std;
    #define LL long long
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    int main()
    {
    	float s;
    	cin >> s;
    	float q,z;
    	q = 50 + s / 3.0;
    	z = s / 1.2;
    	if (z==q)
    	{
    		cout <<"All";
    	}
    	else if (q > z)
    	{
    		cout <<"Walk" ;
    	}
    	else if(q < z)
    	{
    		cout <<"Bike";
    	}
    }
    

    信息

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