結果
| 問題 | 
                            No.275 中央値を求めよ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-01-07 18:24:19 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 210 bytes | 
| コンパイル時間 | 142 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-09-27 19:29:11 | 
| 合計ジャッジ時間 | 2,679 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 38 | 
ソースコード
N = int(input())
mdn_list = list(map(int, input().split())).sort()
if N % 2 == 0:
    result = (mdn_list[int(N / 2)] + mdn_list[int(N / 2 - 1)]) / 2
else:
    result = mdn_list[int((N - 1) / 2)]
print(result)