結果

問題 No.1134 Deviation Score Ⅱ
ユーザー rythem00359rythem00359
提出日時 2020-08-13 09:50:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 46,496 KB
最終ジャッジ日時 2024-04-18 01:23:05
合計ジャッジ時間 18,121 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 504 ms
44,184 KB
testcase_01 AC 596 ms
45,844 KB
testcase_02 AC 563 ms
44,564 KB
testcase_03 AC 606 ms
45,204 KB
testcase_04 AC 538 ms
43,924 KB
testcase_05 AC 605 ms
45,728 KB
testcase_06 AC 523 ms
43,920 KB
testcase_07 AC 517 ms
44,056 KB
testcase_08 AC 591 ms
45,068 KB
testcase_09 AC 514 ms
43,924 KB
testcase_10 AC 511 ms
44,188 KB
testcase_11 AC 558 ms
44,816 KB
testcase_12 AC 554 ms
44,996 KB
testcase_13 AC 596 ms
45,984 KB
testcase_14 AC 566 ms
44,820 KB
testcase_15 AC 535 ms
44,308 KB
testcase_16 AC 513 ms
44,048 KB
testcase_17 AC 554 ms
44,812 KB
testcase_18 AC 548 ms
44,568 KB
testcase_19 AC 584 ms
45,716 KB
testcase_20 AC 546 ms
44,192 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 494 ms
44,164 KB
testcase_26 AC 599 ms
46,496 KB
testcase_27 AC 492 ms
44,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt
from numpy import array, mean 
N=int(input())
x=array([*map(int, input().split())])
M=int(input())
mae=0
ave=mean(x)
for i in x:
    mae+=pow(ave-i,2)/N
print(0 if sqrt(mae) == 0 else int((x[M-1]-ave)*10/sqrt(mae)+50))
0