20分求助!

B2046 骑车与走路

boneey @ 2024-11-11 17:57:08

#include <bits/stdc++.h>
using namespace std;
int main(){
    int s;
    cin >> s;
    if((s / 1.2) == (s / 3.0) + 50) cout << "All" << endl;
    else if((s / 1.2) > (s / 3.0) + 50) cout << "Walk" << endl;
    else cout << "Bike" << endl;
    return 0;
}

by omo_omo @ 2024-11-14 13:50:31

@boneeywalk和bike写反了?


by boneey @ 2024-11-14 16:54:39

@omo_omo 谢谢已经AC了(我是沙比)


|