用三目运算符求最大的数 摘要:解题思路:使用三目运算符最简单,可以减少内存空间的利用,使用if判断也可以,但是步骤很繁琐注意事项:参考代码:import java.util.Scanner;public class Main { …… 题解列表 2022年04月05日 0 点赞 0 评论 735 浏览 评分:9.9
稍简洁的三个数找最大值的题解 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d", &a, &b,&c); if(a<b)…… 题解列表 2022年07月05日 0 点赞 0 评论 210 浏览 评分:9.9
三目运算__C语言 摘要:运行时间: 27ms, 消耗内存: 1156KB ```c #include int main() { int a = 0, b = 0, c = 0; …… 题解列表 2022年07月06日 0 点赞 0 评论 279 浏览 评分:9.9
1006: [编程入门]三个数找最大值(Python代码) 摘要:####**解题思路:** ***方法一:*** 1.用**map**分别赋值 2.用**max**函数求最大值 3.**输出**最大值 **…… 题解列表 2022年07月22日 0 点赞 0 评论 649 浏览 评分:9.9
构建swap函数实现交换 摘要:解题思路:首先根据题意我们可以大致确定一条方向:依次判断第一个数和另外两个的大小,若第一个数较小,则交换,最后输出第一个数即可注意事项:为了避免交换的代码写两遍,我们可以单独构造一个swap函数实现交…… 题解列表 2022年10月26日 0 点赞 0 评论 335 浏览 评分:9.9
c++解题思路 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin >> a; cin >…… 题解列表 2023年03月02日 0 点赞 2 评论 343 浏览 评分:9.9
三个数的最大值 摘要:解题思路:用数组+for循环判断注意事项:strlen只能用于char型数组参考代码:#include<stdio.h>int main(){ int s[100]={'\0'}; …… 题解列表 2023年03月18日 0 点赞 0 评论 189 浏览 评分:9.9
1006: [编程入门]三个数找最大值 摘要:解题思路:这道题更简单,只是单纯的找最大值;注意事项:是最大值,不是最小值参考代码:#include<bits/stdc++.h> using namespace std; int a[100],…… 题解列表 2023年04月27日 0 点赞 0 评论 248 浏览 评分:9.9
三个数找最大值代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b&&…… 题解列表 2023年07月05日 0 点赞 0 评论 177 浏览 评分:9.9
[编程入门]三个数找最大值 摘要:解题思路:if-else注意事项:参考代码:a,b,c = map(int,input().split())if a>b: if a>c: print(a) else: …… 题解列表 2023年11月07日 0 点赞 0 评论 530 浏览 评分:9.9