結果

問題 No.275 中央値を求めよ
ユーザー Fullmoon85072Fullmoon85072
提出日時 2020-08-01 20:31:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 251 ms / 1,000 ms
コード長 218 bytes
コンパイル時間 617 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 86,028 KB
最終ジャッジ日時 2023-09-22 14:37:51
合計ジャッジ時間 12,505 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 236 ms
85,844 KB
testcase_01 AC 234 ms
85,584 KB
testcase_02 AC 236 ms
85,608 KB
testcase_03 AC 236 ms
85,748 KB
testcase_04 AC 237 ms
85,696 KB
testcase_05 AC 238 ms
85,764 KB
testcase_06 AC 238 ms
85,956 KB
testcase_07 AC 235 ms
85,864 KB
testcase_08 AC 237 ms
85,792 KB
testcase_09 AC 235 ms
85,944 KB
testcase_10 AC 241 ms
85,616 KB
testcase_11 AC 235 ms
85,612 KB
testcase_12 AC 240 ms
85,784 KB
testcase_13 AC 237 ms
85,692 KB
testcase_14 AC 245 ms
85,908 KB
testcase_15 AC 241 ms
85,800 KB
testcase_16 AC 242 ms
85,772 KB
testcase_17 AC 239 ms
85,944 KB
testcase_18 AC 238 ms
85,620 KB
testcase_19 AC 240 ms
85,900 KB
testcase_20 AC 237 ms
85,896 KB
testcase_21 AC 236 ms
85,744 KB
testcase_22 AC 239 ms
85,668 KB
testcase_23 AC 240 ms
86,012 KB
testcase_24 AC 237 ms
85,844 KB
testcase_25 AC 238 ms
85,860 KB
testcase_26 AC 244 ms
85,684 KB
testcase_27 AC 235 ms
85,616 KB
testcase_28 AC 234 ms
85,852 KB
testcase_29 AC 240 ms
85,960 KB
testcase_30 AC 237 ms
85,624 KB
testcase_31 AC 242 ms
86,016 KB
testcase_32 AC 236 ms
85,924 KB
testcase_33 AC 239 ms
85,640 KB
testcase_34 AC 237 ms
86,028 KB
testcase_35 AC 242 ms
85,832 KB
testcase_36 AC 244 ms
85,620 KB
testcase_37 AC 243 ms
85,960 KB
testcase_38 AC 245 ms
85,656 KB
testcase_39 AC 241 ms
85,844 KB
testcase_40 AC 251 ms
85,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics

N = int(input())
num_list = [int(x) for x in input().split(" ")]

median_num = statistics.median(num_list)
if median_num - int(median_num) == 0:
    print(int(median_num))
else:
    print(median_num)
0