[编程入门]三个数的最大值python 解题思路:注意事项:参考代码:a,b,c=map(int,input(),split)print(max(a,b,c)) 题解列表 2022年01月16日 0 点赞 0 评论 853 浏览 评分:6.0
三目运算求解 摘要:解题思路:这三个数直接用一个语句判断,不需要if,代码简洁。注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a…… 题解列表 2022年10月13日 0 点赞 0 评论 490 浏览 评分:6.0
小题不必大做 摘要:解题思路:小题不必大做注意事项:参考代码:a, b, c = input().split() list1 = [a, b, c] print(max(list1))…… 题解列表 2023年07月26日 10 点赞 2 评论 1142 浏览 评分:6.0
三数取最大的两种方法 摘要:解题思路: 1. 先声明变量,获取储存位置。 2. 利用第一步的变量,利用scanf函数获取用户的输入。 3. 利用if 条件语句,或者三目运算…… 题解列表 2022年03月31日 1 点赞 0 评论 650 浏览 评分: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 评论 1322 浏览 评分:7.3
三个整数的最大值(一看就懂系列) 摘要:解题思路:直接用条件运算符也可以,三行代码就实现这个功能注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c; scanf("%d%d%…… 题解列表 2022年02月08日 0 点赞 0 评论 870 浏览 评分:7.3
1002: [编程入门]三个数最大值 摘要:解题思路:用max()函数求两数最大值,三个数最大值的话,使用两次max()就行了。注意事项:题目说要输入数组,但又指明三个数是a,b,c,感觉没表达清楚。参考代码:#include <iostrea…… 题解列表 2022年02月19日 0 点赞 2 评论 1058 浏览 评分:7.3
三个数最大值 摘要:参考代码:print("Please input a,b,c")a=input()b=input()c=input()M=max(a,b,c)print("The max is:"+M)…… 题解列表 2021年07月19日 0 点赞 2 评论 1029 浏览 评分:7.7
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:运用 && 的解法注意事项:参考代码:#include<stdio.h> main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>…… 题解列表 2017年07月12日 1 点赞 0 评论 1854 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2017年07月23日 0 点赞 0 评论 1691 浏览 评分:8.0