题解 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 <stdio.h> int main() { i…… 题解列表 2024年12月20日 2 点赞 0 评论 312 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int max=0,min=1000,a,b; scanf("%d",&a); while(a…… 题解列表 2024年11月26日 0 点赞 0 评论 171 浏览 评分:0.0
元素最大跨度值 用到了max min for循环 摘要:解题思路:注意事项:题目描述给定一个长度为n的非负整数序列,请计算序列的最大跨度值(最大跨度值 = 最大值减去最小值)。输入格式一共2行,第一行为序列的个数n(1 <= n <= 1000),第二行为…… 题解列表 2024年11月04日 0 点赞 0 评论 128 浏览 评分: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
整数序列的元素最大跨度值(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 评论 145 浏览 评分: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<stdio.h>#define max(a,b) (a>b?a:b) #define min(a,b) (a<b?a:b)int ma…… 题解列表 2022年11月04日 0 点赞 0 评论 488 浏览 评分:6.0
简简单单看我的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int cdd[n]; for(int i=0;i<n;i++){…… 题解列表 2022年10月23日 0 点赞 1 评论 791 浏览 评分:8.5
题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int sum,m,sun; sum=0; …… 题解列表 2024年01月09日 0 点赞 0 评论 183 浏览 评分:9.9