题解 2838: 有趣的跳跃

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

咱也不知道咋就做对了

摘要:解题思路:乱想的,3+2+1 1+2+3注意事项:无参考代码:#include<math.h>int main(){ int n = 0; scanf("%d", &n); int arr[1000]……

有趣的跳跃(用了flag)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,flag=1; scanf("%d",&n); int a[n]; for(i=0;i<n;i+……