Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
32670 | 闻航 | 骑车与走路 | C++ | Accepted | 0 MS | 248 KB | 272 | 2023-12-02 12:13:12 |
#include <iostream> using namespace std; int main() { double x,b,w; cin>>x; w=x/1.2; b=x/3+(0.27+0.23); if(w<b) { cout<<"Walk"; } else if(w>b) { cout<<"Bike"; } else { cout<<"All"; } return 0; }