結果

問題 No.1586 Equal Array
ユーザー raven7959
提出日時 2021-08-19 16:19:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 130 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 82,816 KB
最終ジャッジ日時 2024-10-12 16:41:39
合計ジャッジ時間 2,882 ms
ジャッジサーバーID
(参考情報)
judge5 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
num=0
for a in A:
    num=(num+a)%N
if num:
    print("No")
else:
    print("Yes")
0