結果

問題 No.275 中央値を求めよ
ユーザー Cyberdog-しばいぬ-
提出日時 2019-02-04 12:12:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 150 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 13,696 KB
最終ジャッジ日時 2024-12-24 15:19:59
合計ジャッジ時間 3,900 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics

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