結果
問題 | No.1134 Deviation Score Ⅱ |
ユーザー |
|
提出日時 | 2021-02-25 18:31:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 313 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,896 KB |
最終ジャッジ日時 | 2024-10-01 08:40:24 |
合計ジャッジ時間 | 2,430 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 WA * 12 |
ソースコード
import sys N = int(input()) l = list(map(int, input().split())) M = int(input()) av = sum(l) / N # print(av) def f(x): return (x - av)**2 ll = list(map(f, l)) av2 = sum(ll) / N root = av2 ** 0.5 if root == 0: print(50) sys.exit() # print(root) div = abs(l[M - 1] - av) st3 = (div*10) / root if l[M - 1] >= av : print(50 + int(st3)) else: print(50 - int(st3))