题解欢乐的跳这道题目的基本思路,就是相邻两数作差(千万别读成每两个元素的差),在用桶来标记,再将桶遍历验证,这事就结了。 阿吗特拉斯 #include<bits/stdc++.h> using namespace std; int a[1001],c[1001]; int main(){ i…