結果

問題 No.1134 Deviation Score Ⅱ
ユーザー 炭酸水
提出日時 2022-05-14 03:28:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 98 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,724 KB
最終ジャッジ日時 2024-07-22 09:17:27
合計ジャッジ時間 2,906 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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

a_sum = 0
for i in a:
    a_sum += i

a_ave = a_sum / n

a_sd_sum = 0
for i in a:
    a_sd_sum += (i - a_ave)**2

a_sd = (a_sd_sum / n)**0.5

if a_sd == 0:
    print(50)
else:
    print(int(50 + (a[(int(input())) - 1] - a_ave) * 10 / a_sd))
0