感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx=0,minn=1000,a; …… 题解列表 2023年07月01日 0 点赞 0 评论 150 浏览 评分:0.0
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 136 浏览 评分:0.0
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年03月31日 0 点赞 0 评论 167 浏览 评分:0.0
元素最大跨度值 用到了max min for循环 摘要:解题思路:注意事项:题目描述给定一个长度为n的非负整数序列,请计算序列的最大跨度值(最大跨度值 = 最大值减去最小值)。输入格式一共2行,第一行为序列的个数n(1 <= n <= 1000),第二行为…… 题解列表 2024年11月04日 0 点赞 0 评论 128 浏览 评分: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
2798: 整数序列的元素最大跨度值(详细注释) 摘要:解题思路:注意事项:参考代码://解题思路:最大跨度=最大值-最小值,因而只要求出最大值与最小值,此题就迎刃而解了。 #include <stdio.h> int main() { i…… 题解列表 2024年12月20日 2 点赞 0 评论 312 浏览 评分:0.0
编写题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,maxx=-1e18,minn…… 题解列表 2024年12月22日 0 点赞 0 评论 376 浏览 评分:0.0
整数序列的元素最大跨度值 C++ 摘要:解题思路:注意事项:参考代码:#include<iomanip>#include<string>#include<iostream>#include<algorithm>#include<cmath>…… 题解列表 2022年12月08日 0 点赞 0 评论 243 浏览 评分:0.0
整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int maxx = 0, minn = INT_MA…… 题解列表 2024年01月10日 0 点赞 1 评论 86 浏览 评分:2.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