[编程入门]三个数最大值-题解(Python代码) 摘要:参考代码:a,b,c = map(int,input().split())if a>b and a>c: print(a)elif b>a and b>c: print(b)else: …… 题解列表 2021年02月18日 0 点赞 2 评论 586 浏览 评分:6.0
[编程入门]三个数最大值-题解(C++代码) 摘要:解题思路:用if,else注意事项:else后面不加条件参考代码:#include<iostream>using namespace std;int main(){ int a,b; c…… 题解列表 2021年02月18日 0 点赞 1 评论 225 浏览 评分:6.0
三个数最大值(最优,不用数组) 摘要:解题思路:注意事项:参考代码:#inclde<iostream>using namespace std;int main(){int a,b,c;cin>>a>>b>>c;if(a>b>c)//如果a…… 题解列表 2021年04月21日 0 点赞 0 评论 240 浏览 评分:6.0
[编程入门]三个数的最大值python 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input(),split) print(max(a,b,c))…… 题解列表 2022年01月16日 0 点赞 0 评论 422 浏览 评分:6.0
三目运算求解 摘要:解题思路:这三个数直接用一个语句判断,不需要if,代码简洁。注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a…… 题解列表 2022年10月13日 0 点赞 0 评论 121 浏览 评分:6.0
小题不必大做 摘要:解题思路:小题不必大做注意事项:参考代码:a, b, c = input().split() list1 = [a, b, c] print(max(list1))…… 题解列表 2023年07月26日 8 点赞 2 评论 578 浏览 评分:6.0
三数取最大的两种方法 摘要:解题思路: 1. 先声明变量,获取储存位置。 2. 利用第一步的变量,利用scanf函数获取用户的输入。 3. 利用if 条件语句,或者三目运算…… 题解列表 2022年03月31日 0 点赞 0 评论 300 浏览 评分:6.5
[入门]用if-elif-else找出a,b,c中找出最大值------Python 摘要:解题思路:a>b时比较a>c成立时a大否则c大,a>b不成立时判断b>c成立时b大否则c大注意事项:参考代码:a,b,c=map(int,input().split())if a>b: if a…… 题解列表 2021年11月02日 0 点赞 0 评论 953 浏览 评分:7.3
三个整数的最大值(一看就懂系列) 摘要:解题思路:直接用条件运算符也可以,三行代码就实现这个功能注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c; scanf("%d%d%…… 题解列表 2022年02月08日 0 点赞 0 评论 422 浏览 评分:7.3
1002: [编程入门]三个数最大值 摘要:解题思路:用max()函数求两数最大值,三个数最大值的话,使用两次max()就行了。注意事项:题目说要输入数组,但又指明三个数是a,b,c,感觉没表达清楚。参考代码:#include <iostrea…… 题解列表 2022年02月19日 0 点赞 2 评论 831 浏览 评分:7.3