题解 2789: 骑车与走路

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2789: 骑车与走路

摘要:```cpp #include using namespace std; int main() { int b,c; float a; cin>>a; ……

三行主代码简单写法

摘要:解题思路:||,&&前者判断左侧为假(0)输出右侧,后者相反注意事项:无参考代码:#include<stdio.h>int main(){    int a;    scanf("%d", &a); ……

2789: 骑车与走路

摘要:解题思路:注意事项:参考代码:a = int(input())if a / 3 + 50 < a / 1.2:    print(&#39;Bike&#39;)elif a / 3 + 50 == a……