結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー takexxx
提出日時 2018-07-14 02:23:10
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 208 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 454 ms
コンパイル使用メモリ 20,608 KB
実行使用メモリ 20,748 KB
最終ジャッジ日時 2026-04-25 08:56:45
合計ジャッジ時間 1,866 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

s = int(input().readline().rstrip())
list = input().read().split()

list.sort()

if s % 2 ==1:
    x = (s+1) // 2
    print(list[x-1])

if s % 2 ==0:
    x = s // 2
    print((int(list[x-1])+int(list[x]))/2)
0