結果

問題 No.1134 Deviation Score Ⅱ
ユーザー rythem00359rythem00359
提出日時 2020-08-13 09:51:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 625 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 47,000 KB
最終ジャッジ日時 2024-04-18 01:23:26
合計ジャッジ時間 17,472 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 499 ms
44,192 KB
testcase_01 AC 600 ms
45,852 KB
testcase_02 AC 566 ms
44,948 KB
testcase_03 AC 585 ms
45,332 KB
testcase_04 AC 525 ms
44,180 KB
testcase_05 AC 597 ms
46,228 KB
testcase_06 AC 528 ms
44,184 KB
testcase_07 AC 513 ms
44,188 KB
testcase_08 AC 583 ms
45,220 KB
testcase_09 AC 526 ms
44,180 KB
testcase_10 AC 511 ms
44,060 KB
testcase_11 AC 568 ms
44,948 KB
testcase_12 AC 576 ms
45,084 KB
testcase_13 AC 600 ms
46,232 KB
testcase_14 AC 558 ms
45,084 KB
testcase_15 AC 548 ms
44,312 KB
testcase_16 AC 518 ms
44,188 KB
testcase_17 AC 554 ms
44,960 KB
testcase_18 AC 566 ms
44,824 KB
testcase_19 AC 594 ms
45,852 KB
testcase_20 AC 536 ms
44,436 KB
testcase_21 AC 580 ms
45,720 KB
testcase_22 AC 570 ms
44,184 KB
testcase_23 AC 498 ms
43,924 KB
testcase_24 AC 492 ms
43,928 KB
testcase_25 AC 508 ms
44,184 KB
testcase_26 AC 625 ms
47,000 KB
testcase_27 AC 512 ms
44,184 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(50 if sqrt(mae) == 0 else int((x[M-1]-ave)*10/sqrt(mae)+50))
0