結果

問題 No.275 中央値を求めよ
ユーザー altyyy
提出日時 2024-12-26 16:35:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-26 16:35:06
合計ジャッジ時間 3,195 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

x = int(input())
a_lst = list(map(int,input().split()))
a_lst.sort()

y = x%2
print(y)
if y == 0:
    c = x//2-1
    d = c+1
    print(a_lst[c])
    print(a_lst[d])
    e = (a_lst[c]+a_lst[d])/2

else:
    e = a_lst[x//2]

print(e)
0