Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
7347 | xingru | 骑车与走路 | C++ | Accepted | 0 MS | 244 KB | 271 | 2023-02-03 18:03:04 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; float b,c; cin>>a; b=a*1.0/1.2; c=a*1.0/3; c+=50; if(b>c) cout<<"Bike"; if(b<c) cout<<"Walk"; if(b==c) cout<<"All"; return 0; }