两种解法(sort和快速排序) 摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac…… 题解列表 2022年11月04日 0 点赞 0 评论 480 浏览 评分:0.0
c++最大和最小差值的两种方法 摘要:方法一:使用climits头文件定义最大数,不需要数组#include <iostream>#include <climits>//包含INT_MAX和INT_MIN#incl…… 题解列表 2025年11月22日 0 点赞 0 评论 209 浏览 评分:0.0
简单的最大值和最小值的代码 摘要:m=int(input())#mylist=[list(map(int,input().split())) for i in range(m)] #这行代码会生成二维列表,写错了。因为多用…… 题解列表 2025年11月06日 0 点赞 0 评论 284 浏览 评分:0.0
题解 2905: 最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long long a,b[100000]; scanf("%…… 题解列表 2025年01月27日 0 点赞 0 评论 439 浏览 评分:0.0
最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[10000],i; int max; int min; int difference; sc…… 题解列表 2023年02月20日 0 点赞 0 评论 416 浏览 评分:0.0
c语言代码易懂 摘要:解题思路:注意事项:参考代码:int main (){ int a[10000]; int M; scanf ("%d",&M); for (int i=00;i<M;i++)…… 题解列表 2024年12月12日 0 点赞 0 评论 400 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int m,* a,i,max,min; scanf("%d",…… 题解列表 2023年06月12日 0 点赞 0 评论 328 浏览 评分:0.0
最大值和最小值的差(C语言) 摘要:#include<stdio.h>int main(){ int a,b[10001]; int max=0,min=10000; scanf("%d",&a); for(in…… 题解列表 2023年11月27日 0 点赞 0 评论 595 浏览 评分:0.0
计算最大值和最小值的差(简单易懂)!!! 摘要:解题思路:注意事项:有不懂的地方欢迎提问!!!参考代码:#include<stdio.h>int main(){ int m,i,t; int a[10000]; scanf("%d…… 题解列表 2024年12月02日 1 点赞 0 评论 395 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,max=0,min=10000; scanf("%d",&a); while(…… 题解列表 2024年11月27日 1 点赞 0 评论 267 浏览 评分:0.0