結果

問題 No.275 中央値を求めよ
ユーザー Cyberdog-しばいぬ-Cyberdog-しばいぬ-
提出日時 2019-02-04 12:10:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 143 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 10,556 KB
最終ジャッジ日時 2023-08-26 02:05:50
合計ジャッジ時間 3,352 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,200 KB
testcase_01 AC 31 ms
10,456 KB
testcase_02 AC 32 ms
10,216 KB
testcase_03 RE -
testcase_04 AC 31 ms
10,208 KB
testcase_05 AC 31 ms
10,268 KB
testcase_06 AC 31 ms
10,276 KB
testcase_07 AC 32 ms
10,444 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 31 ms
10,224 KB
testcase_11 RE -
testcase_12 AC 31 ms
10,188 KB
testcase_13 RE -
testcase_14 AC 31 ms
10,228 KB
testcase_15 AC 32 ms
10,320 KB
testcase_16 AC 31 ms
10,556 KB
testcase_17 AC 31 ms
10,512 KB
testcase_18 AC 32 ms
10,380 KB
testcase_19 RE -
testcase_20 AC 31 ms
10,392 KB
testcase_21 AC 32 ms
10,468 KB
testcase_22 AC 32 ms
10,276 KB
testcase_23 RE -
testcase_24 AC 32 ms
10,400 KB
testcase_25 AC 32 ms
10,304 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 31 ms
10,532 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 AC 31 ms
10,224 KB
testcase_38 AC 31 ms
10,208 KB
testcase_39 RE -
testcase_40 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics

input()
N = map(int, input().split())
M = statistics.median(N)
if M.is_integer() == 1:
    print(int(M))
else:
    print(M)
0