結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-10 18:58:43 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 53 ms / 1,000 ms |
| + 889µs | |
| コード長 | 121 bytes |
| 記録 | |
| コンパイル時間 | 10 ms |
| コンパイル使用メモリ | 8,704 KB |
| 実行使用メモリ | 14,592 KB |
| 最終ジャッジ日時 | 2026-09-25 04:32:03 |
| 合計ジャッジ時間 | 4,229 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i As = gets.split.map(&:to_i).sort half = N / 2 puts N.odd? ? As[half] : (As[(half)] + As[(half) - 1]) / 2.0