1002:[编程入门]三个数最大值 摘要:解题思路: o=(a+b+abs(a-b))/2; nums=(o+c+abs(o-c))/2;求最值的式子,熟练了也可以用于数组求最值注意事项:一定要说注意的地方在哪的话,定义的数据类型算一个吧,l…… 题解列表 2023年06月10日 0 点赞 0 评论 181 浏览 评分:9.9
逐步比较法求得三个数中最大值 摘要:解题思路:一共存在三个数,若要求得最大值,可以先比C和B,然后将C与B中较大的值去与A比较。就可以得出最大的一个数啦!max(b,c)就是B和C中较大的数max(a,max(b,c))就是A和B与C中…… 题解列表 2023年06月28日 0 点赞 0 评论 183 浏览 评分:9.9
三元运算简单解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年07月06日 0 点赞 0 评论 112 浏览 评分:9.9
[编程入门]三个数最大值(数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 0; int s[3]; for (i = 0; i < 3; i++…… 题解列表 2023年10月28日 0 点赞 0 评论 192 浏览 评分:9.9
1002c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); if(a>b){ if…… 题解列表 2023年11月05日 0 点赞 0 评论 125 浏览 评分:9.9
一行就够了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%d…… 题解列表 2023年12月12日 0 点赞 0 评论 121 浏览 评分:9.9
题解 1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:不要抄袭,会遭报应的.参考代码:#inciude <bits/stdc++.b>useing namespece std;int a,s,c;int mein()[ cin>…… 题解列表 2023年12月31日 0 点赞 1 评论 325 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年01月05日 0 点赞 0 评论 301 浏览 评分:9.9
两种方法求解最大值问题 摘要:解题思路:解法1:利用if语句判断a,b,c之间的大小;(较复杂)解法2:利用max函数判断最大值;(较简单)注意事项:1、max(a,b);其结果为a,b间的较大值。即:若a>b,则max(a,b)…… 题解列表 2024年01月16日 1 点赞 0 评论 278 浏览 评分:9.9