結果
問題 |
No.1134 Deviation Score Ⅱ
|
ユーザー |
|
提出日時 | 2021-10-02 17:03:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 538 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,752 KB |
最終ジャッジ日時 | 2024-07-20 11:52:43 |
合計ジャッジ時間 | 3,630 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 WA * 14 |
ソースコード
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))