結果

問題 No.1134 Deviation Score Ⅱ
ユーザー MaboyMaboy
提出日時 2021-10-02 17:03:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 884 ms
コンパイル使用メモリ 10,780 KB
実行使用メモリ 16,552 KB
最終ジャッジ日時 2023-09-27 17:30:33
合計ジャッジ時間 3,740 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,844 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 24 ms
10,532 KB
testcase_05 WA -
testcase_06 AC 21 ms
9,884 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 20 ms
9,396 KB
testcase_10 AC 15 ms
8,416 KB
testcase_11 AC 35 ms
12,640 KB
testcase_12 WA -
testcase_13 AC 47 ms
15,428 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 20 ms
9,572 KB
testcase_17 AC 32 ms
12,432 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 43 ms
14,676 KB
testcase_22 AC 36 ms
11,660 KB
testcase_23 AC 14 ms
7,772 KB
testcase_24 AC 12 ms
7,796 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 14 ms
7,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = list(map(int,input().split()))
m = int(input())
ave = sum(x)/len(x)
x1 = [(z-ave)**2 for z in x]
r = (sum(x1)/len(x1))**0.5
if r != 0:
    s = (x[m-1]-ave)* 10 / r
    if x[m-1] > ave:
        s = s + 50
    else:
        s = 50 - s
else:
    s = 50
print(int(s))
0