Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
29545 | lnx | 骑车与走路 | C++ | Accepted | 0 MS | 260 KB | 271 | 2023-10-31 18:45:38 |
#include<iostream> using namespace std; int main() { double n; cin>>n; double time1,time2; time1=50+(n/3); time2=(n/1.2); if(time1<time2) { cout<<"Bike"; } else if(time1>time2) { cout<<"Walk"; } else { cout<<"All"; } return 0; }