結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-09-07 19:21:25 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 129 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 77,628 KB |
| 最終ジャッジ日時 | 2025-12-03 16:48:15 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 6 WA * 28 RE * 4 |
ソースコード
N = input()
A = sorted(map(int, raw_input().split()))
if N % 2 == 1:
print(A[N/2+1])
else:
print((A[N/2] + A[N/2+1])*0.5)
tnoda_