简简单单看我的 摘要:解题思路:注意事项:参考代码:#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 评论 1078 浏览 评分:8.5
整数序列的元素最大跨度值(c++贼简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, n, c, max, min; cin >>…… 题解列表 2022年11月03日 0 点赞 0 评论 928 浏览 评分: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 评论 818 浏览 评分:6.0
整数序列的元素最大跨度值 C++ 摘要:解题思路:注意事项:参考代码:#include<iomanip>#include<string>#include<iostream>#include<algorithm>#include<cmath>…… 题解列表 2022年12月08日 0 点赞 0 评论 594 浏览 评分:0.0
2798:用数组找最大值-《C语言》 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> #include <stdlib.h> #define N 1000 int main(…… 题解列表 2022年12月20日 0 点赞 0 评论 931 浏览 评分:9.9
虽然简单但是注意的问题多 解题思路:看到这题,直接数组加for语句,max,min值比较就行注意事项:max,min的定义顺序很重要,你要是直接定义max,min各自=0,代入其他的数(非零的),就错误了。须得把max,min分别代入数组第一个数进行比较。参考代码:#includeintmain(){intn 题解列表 2023年01月09日 0 点赞 1 评论 939 浏览 评分:9.9
2798: 整数序列的元素最大跨度值 解题思路:注意事项:参考代码:a=int(input())n=list(map(int,input().split()))print(max(n)-min(n)) 题解列表 2023年02月05日 0 点赞 1 评论 639 浏览 评分:9.9
不用函数,不用数组,轻轻松松get 摘要:解题思路:不用函数,不用数组注意事项:参考代码:#include<stdio.h>int main(){ int n,a,i,c,d,max,min; c=1000; d=0; …… 题解列表 2023年02月08日 0 点赞 0 评论 808 浏览 评分:9.9
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年03月31日 0 点赞 0 评论 555 浏览 评分:0.0
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 481 浏览 评分:0.0