結果

問題 No.1134 Deviation Score Ⅱ
ユーザー umashi-pan-tnokk093numashi-pan-tnokk093n
提出日時 2020-08-13 19:29:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 316 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 19,696 KB
最終ジャッジ日時 2024-04-18 01:47:00
合計ジャッジ時間 3,426 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,880 KB
testcase_01 AC 149 ms
18,492 KB
testcase_02 AC 114 ms
16,088 KB
testcase_03 AC 131 ms
17,392 KB
testcase_04 AC 76 ms
13,608 KB
testcase_05 AC 153 ms
18,308 KB
testcase_06 AC 60 ms
12,800 KB
testcase_07 AC 52 ms
12,288 KB
testcase_08 AC 128 ms
17,044 KB
testcase_09 AC 49 ms
12,032 KB
testcase_10 AC 32 ms
10,880 KB
testcase_11 AC 109 ms
15,852 KB
testcase_12 AC 104 ms
15,680 KB
testcase_13 AC 166 ms
19,296 KB
testcase_14 AC 110 ms
15,884 KB
testcase_15 AC 81 ms
14,164 KB
testcase_16 AC 53 ms
12,416 KB
testcase_17 AC 105 ms
15,560 KB
testcase_18 AC 110 ms
16,116 KB
testcase_19 AC 133 ms
17,472 KB
testcase_20 AC 87 ms
14,336 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 AC 43 ms
11,776 KB
testcase_26 AC 157 ms
19,696 KB
testcase_27 AC 28 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=list(map(int,input().split()))
m=int(input())

ave=sum(x)/n
xx=[]
for i in x:
    xx.append((i-ave)**2)
bunsan=sum(xx)/n
hyojunhensa=bunsan**0.5
hensachi=[]
for i in x:
    tmp=abs(i-ave)*10
    tmp/=hyojunhensa
    if (i-ave)<0:
        tmp*=-1
    hensachi.append(50+tmp)
print(int(hensachi[m-1]))
0