最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int max,min,i,M,a[10000]; scanf("%d",&M); for(i=0;i<M;i+…… 题解列表 2022年11月22日 0 点赞 0 评论 666 浏览 评分:7.0
2905: 最大值和最小值的差 摘要:``` #include using namespace std; const int N=10010; int a[N],n,b,e,h; int main() { cin>>n; …… 题解列表 2023年12月26日 0 点赞 0 评论 515 浏览 评分:6.0
题解 2905: 最大值和最小值的差 #includeusingnamespacestd;inta[100000],b[100000],c[1000000],d,e,f,g;intmain(){cin>>d;for(inti=0;i>a[i];}e=a[0];f=a[0];for(inti=0;ie){e=a[i];}}for(inti= 题解列表 2023年12月06日 0 点赞 2 评论 384 浏览 评分:6.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 评论 688 浏览 评分:0.0
用VS来写最大值和最小值之差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int M; scanf_s("%d", &M); int number[10000]; int i = 0;…… 题解列表 2024年08月07日 0 点赞 0 评论 526 浏览 评分:0.0
多种方法,不使用数组也行 有多种解法,可以先排序,然后直接首尾相减```c#include#includeintcmp(constvoid*a,constvoid*b){return*(int*)a-*(int*)b;}intmain(){intn;scanf("%d", 题解列表 2024年11月05日 0 点赞 0 评论 422 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,max=0,min=10000; scanf("%d",&a); while(…… 题解列表 2024年11月27日 1 点赞 0 评论 344 浏览 评分:0.0
计算最大值和最小值的差(简单易懂)!!! 摘要:解题思路:注意事项:有不懂的地方欢迎提问!!!参考代码:#include<stdio.h>int main(){ int m,i,t; int a[10000]; scanf("%d…… 题解列表 2024年12月02日 1 点赞 0 评论 493 浏览 评分: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 评论 482 浏览 评分:0.0
题解 2905: 最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long long a,b[100000]; scanf("%…… 题解列表 2025年01月27日 0 点赞 0 评论 532 浏览 评分:0.0