結果

問題 No.476 正しくない平均
ユーザー JunOnuma
提出日時 2017-05-17 12:25:51
言語 Python2
(2.7.18)
結果
AC  
実行時間 10 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 12:29:23
合計ジャッジ時間 1,063 ms
ジャッジサーバーID
(参考情報)
judge3 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n,a = map(int, raw_input().split())
l = map(int, raw_input().split())
s = sum(l)
if s % n == 0 and s / n == a:
    print 'YES'
else:
    print 'NO'
0