0分求助!!!

B2046 骑车与走路

居然Tommy @ 2022-10-23 18:50:04

#include<iostream>
using namespace std;
int main()
{
    double n,a,b;
    cin>>n;
    a=n/1.2;
    b=n/3.0+27+23;
    if(a>b)
    {
        cout<<"bike";
    }
    else if(a<b)
    {
        cout<<"walk";
    }
    else
    {
        cout<<"all";
    }
    return 0;
}

by WA_sir @ 2022-10-23 18:55:16

@居然Tommy 大写Bike,Walk,All


by 居然Tommy @ 2022-10-23 19:09:01

有时,我真的很想扇自己。


|