結果

問題 No.476 正しくない平均
ユーザー miya145592miya145592
提出日時 2023-05-03 15:17:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 87,244 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-08-14 00:52:54
合計ジャッジ時間 3,377 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
71,056 KB
testcase_01 AC 57 ms
71,188 KB
testcase_02 AC 59 ms
71,256 KB
testcase_03 AC 61 ms
70,896 KB
testcase_04 AC 63 ms
71,488 KB
testcase_05 AC 59 ms
71,184 KB
testcase_06 AC 60 ms
71,388 KB
testcase_07 AC 61 ms
71,184 KB
testcase_08 AC 59 ms
71,264 KB
testcase_09 AC 61 ms
71,052 KB
testcase_10 AC 60 ms
71,112 KB
testcase_11 AC 58 ms
71,184 KB
testcase_12 AC 59 ms
71,188 KB
testcase_13 AC 57 ms
71,260 KB
testcase_14 AC 59 ms
71,260 KB
testcase_15 AC 59 ms
71,180 KB
testcase_16 AC 60 ms
71,204 KB
testcase_17 AC 61 ms
71,176 KB
testcase_18 AC 59 ms
71,520 KB
testcase_19 AC 59 ms
71,112 KB
testcase_20 AC 59 ms
71,084 KB
testcase_21 AC 59 ms
71,336 KB
testcase_22 AC 58 ms
71,328 KB
testcase_23 AC 60 ms
71,356 KB
testcase_24 AC 60 ms
71,372 KB
testcase_25 AC 58 ms
71,180 KB
testcase_26 AC 59 ms
71,260 KB
testcase_27 AC 59 ms
71,188 KB
testcase_28 AC 58 ms
71,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, a = map(int, input().split())
x = list(map(int, input().split()))
S = sum(x)
if S%n!=0:
    print("NO")
else:
    if S//n==a:
        print("YES")
    else:
        print("NO")
0