結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-06 16:06:32 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 416 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,700 KB |
| 最終ジャッジ日時 | 2026-04-08 07:09:38 |
| 合計ジャッジ時間 | 11,102 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 38 |
ソースコード
count = int(input())
numbers = sorted(map(int, raw_input().split(" ")))
answer = 0
if count % 2 == 0:
target = int(numbers[count // 2 - 1]) + int(numbers[count // 2])
else:
target = int(numbers[count // 2]) * 2
answer = target / (2 * 1.0)
print(answer)