歡樂的跳 - 洛谷
"""
P1152 歡樂的跳( python3實作)
https://www.luogu.com.cn/problem/P1152
"""
import sys
c=[0]*1010
#n=int( input() )
a=list( map( int ,input().split() ) )
n=a[0]
d=[]
for i in range(1,n):
c[i]=abs(a[i]-a[i+1])
d.append(c[i])
d.sort()
for i in range(0,n-1):
if d[i]!=i+1:
print("Not jolly")
sys.exit(0)
print("Jolly")
NOIP1996複賽 普及組 第二題 python
http://1.8程式設計基礎之多元數組 02 同行列對角線的格子
http://noi.openjudge.cn/ch0108/02/
1.8程式設計基礎之多元數組 03 計算矩陣邊緣元素之和 python
https://blog.csdn.net/dllglvzhenfeng/article/details/122652741
1.8 程式設計基礎之多元數組 04 錯誤探測 python
https://blog.csdn.net/dllglvzhenfeng/article/details/122660192
1.8 程式設計基礎之多元數組 08 矩陣加法 python
https://blog.csdn.net/dllglvzhenfeng/article/details/122660285
1.8 程式設計基礎之多元數組 10 矩陣轉置 python
https://blog.csdn.net/dllglvzhenfeng/article/details/122676518
1.8 程式設計基礎之多元數組 11 圖像旋轉 4分 python
https://blog.csdn.net/dllglvzhenfeng/article/details/122676829
1.8 程式設計基礎之多元數組 22 神奇的幻方 python
https://blog.csdn.net/dllglvzhenfeng/article/details/122660329