2 solutions
- 1
Information
- ID
- 537
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 2
- Tags
- # Submissions
- 58
- Accepted
- 38
- Uploaded By
#include <iostream>
#define int double
using namespace std;
int n;
signed main(){
cin>>n;
int ans1=n/3.0+50; //bike
int ans2=n/1.2; //walk
if(ans1<ans2) cout<<"Bike"<<endl;
else if(ans1>ans2) cout<<"Walk"<<endl;
else cout<<"All"<<endl;
return 0;
}
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.