結果

問題 No.2451 Redistribute Integers
ユーザー Meso Meso
提出日時 2024-08-05 14:36:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 919 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 67,344 KB
最終ジャッジ日時 2024-08-05 14:36:57
合計ジャッジ時間 5,689 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))

flag = False
for i in range(n-1):
    if (A[i] - A[i+1]) % n != 0:
        print("No")
        break
else:
    print("Yes")
0