結果
問題 | No.1134 Deviation Score Ⅱ |
ユーザー | ssmkzk |
提出日時 | 2021-02-25 18:31:01 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 18,828 KB |
最終ジャッジ日時 | 2024-04-08 16:27:26 |
合計ジャッジ時間 | 2,845 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
9,984 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 46 ms
12,544 KB |
testcase_05 | WA | - |
testcase_06 | AC | 41 ms
11,648 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 36 ms
11,008 KB |
testcase_10 | AC | 31 ms
10,112 KB |
testcase_11 | AC | 60 ms
14,464 KB |
testcase_12 | WA | - |
testcase_13 | AC | 79 ms
17,436 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 39 ms
11,392 KB |
testcase_17 | AC | 58 ms
14,252 KB |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 67 ms
16,524 KB |
testcase_22 | AC | 59 ms
13,380 KB |
testcase_23 | AC | 30 ms
9,984 KB |
testcase_24 | AC | 30 ms
9,984 KB |
testcase_25 | AC | 35 ms
10,752 KB |
testcase_26 | AC | 79 ms
18,828 KB |
testcase_27 | AC | 29 ms
9,984 KB |
ソースコード
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))