結果

問題 No.476 正しくない平均
ユーザー naoe123naoe123
提出日時 2020-01-11 07:29:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 10,412 KB
最終ジャッジ日時 2023-08-15 18:01:37
合計ジャッジ時間 2,481 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,172 KB
testcase_01 AC 28 ms
10,132 KB
testcase_02 AC 27 ms
10,144 KB
testcase_03 AC 28 ms
10,356 KB
testcase_04 AC 28 ms
10,220 KB
testcase_05 AC 31 ms
10,360 KB
testcase_06 AC 26 ms
10,348 KB
testcase_07 AC 28 ms
10,264 KB
testcase_08 AC 27 ms
10,344 KB
testcase_09 AC 28 ms
10,352 KB
testcase_10 AC 27 ms
10,260 KB
testcase_11 AC 27 ms
10,268 KB
testcase_12 AC 27 ms
10,232 KB
testcase_13 AC 27 ms
10,344 KB
testcase_14 AC 27 ms
10,360 KB
testcase_15 AC 27 ms
10,136 KB
testcase_16 AC 27 ms
10,140 KB
testcase_17 AC 27 ms
10,164 KB
testcase_18 AC 28 ms
10,216 KB
testcase_19 AC 27 ms
10,292 KB
testcase_20 AC 29 ms
10,320 KB
testcase_21 AC 28 ms
10,412 KB
testcase_22 AC 27 ms
10,160 KB
testcase_23 AC 27 ms
10,368 KB
testcase_24 AC 27 ms
10,176 KB
testcase_25 AC 29 ms
10,292 KB
testcase_26 AC 29 ms
10,260 KB
testcase_27 AC 29 ms
10,132 KB
testcase_28 AC 30 ms
10,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from statistics import mean, median,variance,stdev

n,a=map(int,input().split())
x=list(map(int,input().split()))

m = mean(x)

if m==a:
    print('YES')
else:
    print('NO')
0