题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[1000],max,min; scanf…… 题解列表 2025年01月25日 0 点赞 0 评论 118 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:最小值初值最大,最大值初值最小#include<bits/stdc++.h>using namespace std;int main(){ int n,b,c=INT_MAX…… 题解列表 2024年01月13日 0 点赞 0 评论 111 浏览 评分:0.0
题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int b; cin>>b; int m…… 题解列表 2024年01月09日 0 点赞 0 评论 59 浏览 评分:0.0
整数序列的元素最大跨度值C 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[1000],min,max; scanf("%d",&n); for(i=…… 题解列表 2024年02月16日 0 点赞 0 评论 71 浏览 评分:0.0
复习排序(本题用最后一种方法,前几个也可以) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin >> n; int a[n],i=-1…… 题解列表 2024年03月03日 0 点赞 0 评论 122 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:注意事项: 给max和min赋值时注意,一定要让这两个值有改动,否则记录的不是输入的值,max够小,min够大参考代码:#include<iostream> using namespace s…… 题解列表 2024年03月04日 0 点赞 0 评论 352 浏览 评分:0.0
python 2798: 整数序列的元素最大跨度值 摘要:参考代码:n = input() arr = list(map(int, input().split())) print(max(arr)-min(arr))…… 题解列表 2024年03月12日 0 点赞 0 评论 236 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,max=0,min=0; …… 题解列表 2023年11月15日 0 点赞 0 评论 96 浏览 评分:0.0
整数序列的元素最大跨度值(max,min) 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())t = [int(i) for i in l]print(max(t) - min(t)…… 题解列表 2024年07月29日 0 点赞 0 评论 144 浏览 评分:0.0
好理解的答案:关于函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int x , int y ){ int d; d=x>y?x:y ; return d ; }int min(…… 题解列表 2024年11月04日 0 点赞 0 评论 112 浏览 评分:0.0