結果

問題 No.2451 Redistribute Integers
ユーザー Carpenters-Cat
提出日時 2023-09-01 21:39:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 366 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 67,220 KB
最終ジャッジ日時 2024-06-11 11:01:29
合計ジャッジ時間 4,401 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
ok = True
for a in A :
	ok = ok and (a % N == A[0] % N)
print("Yes" if ok else "No")
0