2838: 有趣的跳跃 python (正确运行,简单易懂) 摘要:解题思路:注意事项:参考代码:import mathlistB = []listC = []listA = list(map(int,input().split()))n = listA.pop(0)…… 题解列表 2024年04月02日 1 点赞 0 评论 758 浏览 评分:9.5
比较简单的一种方法 摘要:解题思路:先看题目,找出规律注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i,cnt=0; long int a[3000]…… 题解列表 2024年03月30日 0 点赞 0 评论 495 浏览 评分:9.9
2838: 有趣的跳跃 摘要:参考代码:choose = input().split() if len(choose) == 1: n = int(choose[0]) arr = list(map(int,…… 题解列表 2024年03月21日 0 点赞 1 评论 409 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { public static voi…… 题解列表 2024年01月14日 0 点赞 0 评论 343 浏览 评分:9.9
python版:错误答案,仅供参考 摘要:解题思路:注意事项:参考代码:def if_jolly(sequence): n=sequence[0] differences=set() for i in range(1,n):…… 题解列表 2024年01月06日 0 点赞 0 评论 397 浏览 评分:2.0
有趣的跳跃(标记法) 摘要:解题思路:1.标记flag为1 2.输入数字 ,存放在一个数组中3.进行相邻数相减,并取绝对值,存放在另一个数组中4.对另一个数组进行从小到大排序 5.判断,如果出现了第i个差的值不等于i的情况,这f…… 题解列表 2023年12月12日 0 点赞 0 评论 483 浏览 评分:9.9
c代码记录之有趣的跳跃-C 摘要: #include #include int main() { int n,num[3000],xl[3000]; scanf(…… 题解列表 2023年12月11日 0 点赞 0 评论 328 浏览 评分:0.0
有趣的跳跃(作个循环比较差值变化,别忘了是绝对值) 摘要:解题思路:他这个题目不得不说读不大懂,不过这代码思路可以通过,就说明他这是输入的数,按顺序的差值逐渐变小注意事项:参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年10月11日 0 点赞 0 评论 463 浏览 评分:0.0
2838: 有趣的跳跃 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[3005],b[3005],c=0,x…… 题解列表 2023年10月01日 0 点赞 0 评论 414 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, a[3001],i,b[3001],k=0,j; sc…… 题解列表 2023年06月03日 0 点赞 0 评论 384 浏览 评分:0.0