結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
Gmorning084
|
| 提出日時 | 2017-05-21 20:41:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 145 bytes |
| 記録 | |
| コンパイル時間 | 430 ms |
| コンパイル使用メモリ | 20,572 KB |
| 実行使用メモリ | 20,772 KB |
| 最終ジャッジ日時 | 2026-04-07 17:02:32 |
| 合計ジャッジ時間 | 6,428 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 2 WA * 32 RE * 4 |
ソースコード
nx = int(input())+1
a = list(input().split(" "))
i = int(nx/2)
import math
j = math.ceil(nx/2)
ans = (int(a[i])+int(a[j]))/2
print(ans)
Gmorning084