2798:用数组找最大值-《C语言》 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> #include <stdlib.h> #define N 1000 int main(…… 题解列表 2022年12月20日 0 点赞 0 评论 624 浏览 评分:9.9
2798;整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;//老师教的int main(){//老师教的 long long m=1e18;//老师教的 int …… 题解列表 2023年12月03日 0 点赞 0 评论 203 浏览 评分:9.5
优质题解 整数序列的元素最大跨度值(详细题解) 摘要:这道题的题目是“整数序列的元素最大跨度值”。给定一个整数序列,我们需要找到序列中的最大值和最小值,并计算它们之间的差值,即为最大跨度值。以下是详细的题解思路和步骤:1. 首先,我们定义两个变量 max…… 题解列表 2023年07月08日 1 点赞 2 评论 1233 浏览 评分:9.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 评论 836 浏览 评分:8.5
随便写 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main (String[] arg…… 题解列表 2023年12月05日 0 点赞 0 评论 216 浏览 评分:7.3
整数序列的元素最大跨度值(c++贼简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, n, c, max, min; cin >>…… 题解列表 2022年11月03日 0 点赞 0 评论 548 浏览 评分:6.9
哥们哥们,投机来吗(有一点小问题) 摘要:解题思路:条件表达式注意事项:不要写错参考代码:#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 评论 526 浏览 评分:6.0
整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int maxx = 0, minn = INT_MA…… 题解列表 2024年01月10日 0 点赞 1 评论 127 浏览 评分:2.0
2798 整数序列的元素最大跨度值 摘要:解题思路:求整数序列的最大跨度值(最大值减去最小值)注意事项:最大值用 if(x > max),最小值用 if(x < min)最小值初始化为“很大”,最大值初始化为“很小”参考代码:#i…… 题解列表 2025年08月02日 0 点赞 0 评论 16 浏览 评分: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 评论 151 浏览 评分:0.0