编写题解 1002: [编程入门]三个数最大值 摘要:解题思路:可以使用if判断或者循环+if判断的方式去写注意事项:参考代码:public class Day01 { public static void main(String args[]) { …… 题解列表 2024年01月29日 0 点赞 0 评论 334 浏览 评分:9.9
1002: [编程入门]三个数最大值 摘要:[题目传送门(一上来都是这个)](https://www.dotcpp.com/oj/problem1006.html) ###**思路** 定义一个数组,遍历求最大值即可。 ###**代码**…… 题解列表 2024年01月30日 1 点赞 0 评论 219 浏览 评分:9.9
[编程入门]三个数最大值 摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() …… 题解列表 2024年02月04日 0 点赞 0 评论 207 浏览 评分:9.9
编写一个程序,输入a,b,c三个值,输出其中最大值。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c); if(a<c&&b<c){ …… 题解列表 2024年02月23日 0 点赞 0 评论 147 浏览 评分:9.9
Max函数(c++) 摘要:解题思路:使用Max函数int a=0,b=1; int c=max(a,b);//然后c会被max赋值为两个数中更大的数的值注意事项:max中只能填两个数参考代码:#include<bits/st…… 题解列表 2024年06月17日 0 点赞 0 评论 280 浏览 评分:9.9
Java学习小练习 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年07月16日 2 点赞 0 评论 398 浏览 评分:9.9
1002: [编程入门]三个数最大值 C++题解 摘要:解题思路:这是一题水题,有手就行。。。用数组和排序闭着眼睛都能过(虽然有点小题大做。。。)注意事项:一定要用万能头文件,不然其他头文件遇到sort()会报错。参考代码:#include<bits/st…… 题解列表 2024年07月17日 1 点赞 0 评论 441 浏览 评分:9.9
宏定义秒了 摘要:解题思路:注意事项:宏定义的变量尽量用(),防止误运算参考代码:#include <stdio.h>#define MAX(a,b) ((a)>(b)?(a):(b))int main() { …… 题解列表 2024年08月06日 1 点赞 0 评论 111 浏览 评分:9.9
【C语言题解】三个数的最大值 摘要:解题思路: 可以用三目运算符,先比较两个数的大小,取出两个数中最大的,然后再跟第三个数进行比较,最终得出最大数。 参考代码:#include int main (){ …… 题解列表 2024年09月08日 0 点赞 0 评论 248 浏览 评分:9.9
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路: 假设a是最大值,然后用a与b,c 比较,哪个大就让max等于哪个注意事项:参考代码:#include <stdio.h>int main() { int a, b, c; i…… 题解列表 2024年12月05日 8 点赞 0 评论 615 浏览 评分:9.9