結果

問題 No.2451 Redistribute Integers
ユーザー sepa38
提出日時 2023-09-01 21:41:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 153,936 KB
最終ジャッジ日時 2024-06-11 11:01:50
合計ジャッジ時間 3,277 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
for i in range(n-1):
  if (a[i] - a[i+1]) % n:
    print("No")
    exit()
print("Yes")
0