結果

問題 No.1134 Deviation Score Ⅱ
ユーザー hiragnhiragn
提出日時 2022-11-22 17:24:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 498 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,740 KB
実行使用メモリ 47,896 KB
最終ジャッジ日時 2023-10-24 10:32:51
合計ジャッジ時間 17,284 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 456 ms
42,280 KB
testcase_01 AC 485 ms
46,576 KB
testcase_02 AC 472 ms
45,256 KB
testcase_03 AC 475 ms
46,048 KB
testcase_04 AC 467 ms
43,672 KB
testcase_05 AC 484 ms
46,576 KB
testcase_06 AC 465 ms
42,880 KB
testcase_07 AC 470 ms
42,284 KB
testcase_08 AC 484 ms
45,784 KB
testcase_09 AC 463 ms
42,280 KB
testcase_10 AC 464 ms
42,284 KB
testcase_11 AC 483 ms
44,992 KB
testcase_12 AC 486 ms
44,992 KB
testcase_13 AC 498 ms
47,104 KB
testcase_14 AC 486 ms
44,992 KB
testcase_15 AC 484 ms
43,936 KB
testcase_16 AC 466 ms
42,324 KB
testcase_17 AC 492 ms
44,992 KB
testcase_18 AC 483 ms
45,256 KB
testcase_19 AC 477 ms
46,312 KB
testcase_20 AC 495 ms
44,200 KB
testcase_21 AC 486 ms
46,840 KB
testcase_22 AC 466 ms
42,284 KB
testcase_23 AC 455 ms
42,280 KB
testcase_24 AC 458 ms
42,280 KB
testcase_25 AC 464 ms
42,280 KB
testcase_26 AC 489 ms
47,896 KB
testcase_27 AC 475 ms
42,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np


def main():
    _ = int(input())
    x = np.array(list(map(int, input().split())))
    m = int(input())

    if np.std(x) == 0:
        ans = 50
    else:
        ans = int(50 + 10 * (x[m - 1] - np.average(x)) / np.std(x))
    print(ans)


if __name__ == "__main__":
    main()
0