有趣的跳跃(c语言简易方法) 摘要:解题思路:注意事项:用到多个数组参考代码:#include<stdio.h>int main(){ int a[3000],b[3000],n,d; scanf("%d",&n); …… 题解列表 2022年11月08日 0 点赞 4 评论 845 浏览 评分:6.0
有趣的跳跃(用了flag) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,flag=1; scanf("%d",&n); int a[n]; for(i=0;i<n;i+…… 题解列表 2022年12月08日 0 点赞 1 评论 593 浏览 评分:6.0
咱也不知道咋就做对了 摘要:解题思路:乱想的,3+2+1 1+2+3注意事项:无参考代码:#include<math.h>int main(){ int n = 0; scanf("%d", &n); int arr[1000]…… 题解列表 2023年03月16日 0 点赞 0 评论 580 浏览 评分:0.0
有趣的跳跃 解题思路:拆分为几个小的模块进行,但感觉很麻烦。1.建立数组a[n],用来存放序列中的每个数字2.用数组c[n],用来存放数组a中相邻两个数差值的绝对值3.对c[n]进行冒泡排序4.判断c[n]数组中第n个数是不是等于n5.如果全部都对应相等就输出Jolly, 题解列表 2023年04月02日 0 点赞 2 评论 1025 浏览 评分:9.9
2838: 有趣的跳跃 摘要:解题思路:抛砖引玉,欢迎讨论。用最笨的办法,完成题目注意事项:如果水平足够可以直接写代码,如果水平不够就慢慢来,把思路捋清楚,一步一步做测试,最终把代码完成参考代码:#include <iostrea…… 题解列表 2023年04月15日 0 点赞 0 评论 674 浏览 评分:0.0
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 评论 534 浏览 评分: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 评论 605 浏览 评分:9.9
有趣的跳跃(作个循环比较差值变化,别忘了是绝对值) 摘要:解题思路:他这个题目不得不说读不大懂,不过这代码思路可以通过,就说明他这是输入的数,按顺序的差值逐渐变小注意事项:参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年10月11日 0 点赞 0 评论 674 浏览 评分:0.0
c代码记录之有趣的跳跃-C #include#includeintmain(){intn,num[3000],xl[3000];scanf("%d",&n);if(n==1)printf("%s","Jolly");else{inti,j,middle,min,bj=0;for(i=0;i 题解列表 2023年12月11日 0 点赞 0 评论 512 浏览 评分:0.0
有趣的跳跃(标记法) 摘要:解题思路:1.标记flag为1 2.输入数字 ,存放在一个数组中3.进行相邻数相减,并取绝对值,存放在另一个数组中4.对另一个数组进行从小到大排序 5.判断,如果出现了第i个差的值不等于i的情况,这f…… 题解列表 2023年12月12日 0 点赞 0 评论 640 浏览 评分:9.9