# include<bits/stdc++.h>
using namespace std;
int main(){
int n, k = 0;
int a[n + 5] = {0}, b[n + 5] = {0};
cin >> n;
for(int i = 1; i <= n; i++)
cin >> a[i];
for(int i = 1; i < n; i++){
int w = a[i + 1] - a[i];
if(w > 0) w *= -1;
b[i] = w;
}
sort(b + 1, a + n);
for(int i = 1; i < n; i++){
if(b[i] == k) k++;
}
if(k == n) cout << "Jolly";
else cout << "Not jolly";
return 0;
}
求指出错误