結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-06-12 16:15:47 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 85 ms / 1,000 ms |
| コード長 | 137 bytes |
| 記録 | |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 77,588 KB |
| 最終ジャッジ日時 | 2025-12-04 00:04:07 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
n = int(raw_input())
l = sorted(map(int, raw_input().split()))
if n % 2 == 0:
print (l[n/2] + l[n/2-1]) / 2.0
else:
print l[n/2]
JunOnuma