結果
問題 |
No.275 中央値を求めよ
|
ユーザー |
|
提出日時 | 2021-11-18 15:35:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 165 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-26 06:22:55 |
合計ジャッジ時間 | 2,562 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 38 |
ソースコード
N = map(int,input().split()) A = list(map(int,input().split())) A = sorted(A) if len(A)%2==0: print(A[(len(A)/2-1)]+A[(len(A)/2)]) else: print((A[(len(A)-1)/2]))