1002: [编程入门]三个数最大值 (python代码) 摘要:方法一 a, b, c = map(int, input().strip().split()) sum=[a, b, c] sum.sort() print(sum[2]) …… 题解列表 2023年07月09日 0 点赞 0 评论 678 浏览 评分:0.0
求三个数最大值 摘要:解题思路:假设其中一个数为最大值,分别与另外两个数做比较。参考代码:#include<stdio.h>int main(){ int a,b,c; int m = 0; scanf("%d %d…… 题解列表 2023年07月30日 0 点赞 0 评论 319 浏览 评分:0.0
注意问题所问! 摘要:解题思路:相互比较,运用if语句完成注意事项:比较大小参考代码:#include<stdio.h>int main(){ int a,b,c,g; scanf("%d%d%d",&a,&b…… 题解列表 2023年09月26日 0 点赞 0 评论 232 浏览 评分:0.0
小题大作-用快速排序解决 摘要:会有点小题大作,适合练习算法,三个数看不出来时间复杂度的差异 快排对数据排好序之后,再输出最大值即可。 ```c #include int partition(int a[],int low…… 题解列表 2023年10月06日 0 点赞 0 评论 349 浏览 评分:0.0
[编程入门]三个数最大值 (c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using std::cout;int main(){ int a,b,c; std::cin>>a>>b>>c; …… 题解列表 2023年11月15日 0 点赞 0 评论 294 浏览 评分:0.0
用if else语句。设置一个中间变量用来对比3变量的大小 摘要:解题思路:用if else语句。设置一个中间变量用来对比3变量的大小注意事项:if else 语句的格式与写法 //所有程序在英文环境下写入printf("%d",n); n前要有一个逗…… 题解列表 2023年11月24日 0 点赞 0 评论 255 浏览 评分:0.0
三个数比较大小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *bigger(int *a, int *b){ if(*a >= *b) { return a; …… 题解列表 2023年12月06日 0 点赞 0 评论 227 浏览 评分:0.0
笔记 1002: [编程入门]三个数最大值 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args…… 题解列表 2023年12月19日 0 点赞 0 评论 1497 浏览 评分:0.0
三数找最大(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); max=…… 题解列表 2023年12月20日 0 点赞 0 评论 274 浏览 评分:0.0
巧用inline函数节省时间 摘要:解题思路:利用inline函数的调用节省了函数调用的时间,但会增加空间的用量注意事项:参考代码:#include<iostream>using namespace std;inline int ans…… 题解列表 2023年12月21日 0 点赞 0 评论 265 浏览 评分:0.0