結果

問題 No.1586 Equal Array
ユーザー lllllll88938494
提出日時 2023-06-01 01:40:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 1,000 ms
コード長 147 bytes
コンパイル時間 539 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 83,456 KB
最終ジャッジ日時 2024-12-28 14:24:12
合計ジャッジ時間 3,345 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a = list(map(int,input().split()))
cnt = 0
for i in range(n):
    cnt += a[i]%n
    cnt%=n

if cnt:
	print('No')
else:
	print('Yes')
0