2798: 整数序列的元素最大跨度值(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; int i; for(i=0;i…… 题解列表 2023年07月06日 0 点赞 1 评论 421 浏览 评分: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 评论 487 浏览 评分:9.9
2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:a = int(input())n = list(map(int,input().split()))print(max(n) - min(n))…… 题解列表 2023年02月05日 0 点赞 1 评论 367 浏览 评分:9.9
虽然简单但是注意的问题多 摘要:解题思路:看到这题,直接数组加for语句,max,min值比较就行注意事项:max,min的定义顺序很重要,你要是直接定义max,min各自=0,代入其他的数(非零的),就错误了。须得把max,min…… 题解列表 2023年01月09日 0 点赞 1 评论 574 浏览 评分:9.9
2798:用数组找最大值-《C语言》 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> #include <stdlib.h> #define N 1000 int main(…… 题解列表 2022年12月20日 0 点赞 0 评论 616 浏览 评分:9.9
2798: 整数序列的元素最大跨度值题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1e…… 题解列表 2024年12月22日 3 点赞 0 评论 181 浏览 评分:10.0