結果

問題 No.2451 Redistribute Integers
ユーザー 👑 p-adic
提出日時 2023-07-06 20:07:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 173,156 KB
最終ジャッジ日時 2024-06-11 10:56:18
合計ジャッジ時間 3,590 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

I=input
N=int(I())
A=list(map(int,I().split()))
print(["No","Yes"][all((A[0]-a)%N<1for a in A)])
0