咱也不知道咋就做对了 摘要:解题思路:乱想的,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 评论 228 浏览 评分: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 评论 195 浏览 评分:0.0
有趣的跳跃(作个循环比较差值变化,别忘了是绝对值) 摘要:解题思路:他这个题目不得不说读不大懂,不过这代码思路可以通过,就说明他这是输入的数,按顺序的差值逐渐变小注意事项:参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年10月11日 0 点赞 0 评论 168 浏览 评分:0.0
c代码记录之有趣的跳跃-C 摘要: #include #include int main() { int n,num[3000],xl[3000]; scanf(…… 题解列表 2023年12月11日 0 点赞 0 评论 140 浏览 评分:0.0
编写题集 思路清晰 C语言 摘要:#include <stdio.h>#include <math.h>int main(){ int n,i,a[100],b[100]; scanf("%d",&n); for(i=0;i<n;i+…… 题解列表 2024年08月16日 0 点赞 0 评论 136 浏览 评分:0.0
2838: 有趣的跳跃 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ long long n; int t=0,j,i,k=1; …… 题解列表 2024年10月26日 0 点赞 0 评论 169 浏览 评分:0.0
2838: 有趣的跳跃解题 摘要:解题思路:不进行排序,1~n-1作为数组下标,命中的该元素直接设置为1(默认值为0),如果已经为1了,重新设置直接可以打印Not jolly,退出程序。最后对1-~n-1的数组元素直接判断,看值是否都…… 题解列表 2025年01月13日 0 点赞 0 评论 96 浏览 评分:0.0
会排序就能做了,判断很简单 摘要:解题思路:把差的绝对值存到数组里并由小到大排好序,题目要求比较严苛,必须是1到(n-1)的排序才算正确,所以只需要判断数组中的第n-1项的值是否为n-1即可,不需要每一项都查看。注意事项:无参考代码:…… 题解列表 2025年01月25日 0 点赞 0 评论 130 浏览 评分:0.0
有趣的跳跃(c语言简易方法) 摘要:解题思路:注意事项:用到多个数组参考代码:#include<stdio.h>int main(){ int a[3000],b[3000],n,d; scanf("%d",&n); …… 题解列表 2022年11月08日 0 点赞 4 评论 533 浏览 评分: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 评论 283 浏览 评分:6.0