Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
33628 | zzy0518 | 【入门】骑车与走路 | C++ | 通过 | 0 MS | 240 KB | 224 | 2023-12-31 08:31:57 |
#include "bits/stdc++.h" using namespace std; int main(){ double a,b,c; cin>>a; b=a/1.2; c=a/3.0+50; if(b>c){ cout<<"Bike"; } else{ if(c>b){ cout<<"Walk"; } else{ cout<<"All"; } } }