結果

問題 No.275 中央値を求めよ
ユーザー ynishimuraynishimura
提出日時 2020-08-13 15:25:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 504 ms / 1,000 ms
コード長 148 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 44,476 KB
最終ジャッジ日時 2024-04-18 01:34:37
合計ジャッジ時間 22,002 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 495 ms
44,332 KB
testcase_01 AC 492 ms
43,952 KB
testcase_02 AC 492 ms
43,972 KB
testcase_03 AC 485 ms
44,332 KB
testcase_04 AC 484 ms
44,336 KB
testcase_05 AC 477 ms
43,968 KB
testcase_06 AC 484 ms
43,960 KB
testcase_07 AC 489 ms
44,344 KB
testcase_08 AC 494 ms
43,836 KB
testcase_09 AC 501 ms
44,220 KB
testcase_10 AC 502 ms
43,820 KB
testcase_11 AC 492 ms
44,220 KB
testcase_12 AC 491 ms
44,348 KB
testcase_13 AC 480 ms
44,324 KB
testcase_14 AC 490 ms
43,944 KB
testcase_15 AC 489 ms
44,200 KB
testcase_16 AC 493 ms
44,476 KB
testcase_17 AC 491 ms
43,836 KB
testcase_18 AC 495 ms
43,820 KB
testcase_19 AC 493 ms
43,840 KB
testcase_20 AC 492 ms
43,948 KB
testcase_21 AC 489 ms
44,208 KB
testcase_22 AC 497 ms
44,208 KB
testcase_23 AC 496 ms
44,072 KB
testcase_24 AC 496 ms
44,216 KB
testcase_25 AC 499 ms
44,228 KB
testcase_26 AC 494 ms
44,336 KB
testcase_27 AC 501 ms
44,204 KB
testcase_28 AC 499 ms
43,820 KB
testcase_29 AC 504 ms
44,204 KB
testcase_30 AC 502 ms
44,224 KB
testcase_31 AC 503 ms
44,220 KB
testcase_32 AC 494 ms
44,336 KB
testcase_33 AC 498 ms
43,820 KB
testcase_34 AC 501 ms
44,224 KB
testcase_35 AC 497 ms
43,960 KB
testcase_36 AC 495 ms
43,836 KB
testcase_37 AC 498 ms
43,924 KB
testcase_38 AC 497 ms
44,468 KB
testcase_39 AC 502 ms
43,816 KB
testcase_40 AC 499 ms
44,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N = int(input().strip())
L = list(map(int, input().split()))

L.sort()
data = np.array(L)
median = np.median(data)
print(median)
0