結果
問題 |
No.275 中央値を求めよ
|
ユーザー |
|
提出日時 | 2017-11-12 19:28:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 117 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-24 23:16:43 |
合計ジャッジ時間 | 2,147 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 1 RE * 37 |
ソースコード
n=int(input('')) data=[] for i in range(n): data.append(int(input(''))) data.sort() if n%2==0: print(str((data[int(n/2-1)]+data[int(n/2)])/2)) else: print(str(data[int((n-1)/2)]))