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