結果

問題 No.275 中央値を求めよ
ユーザー K5h1n0
提出日時 2023-11-30 06:00:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-26 13:49:26
合計ジャッジ時間 3,563 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 24 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = sorted(list(map(int,input().split())))
if n%2:
    print(a[n//2-1])
else:
    print((a[n//2-1]+a[n//2])*10//2/10)
0