結果
| 問題 |
No.275 中央値を求めよ
|
| コンテスト | |
| ユーザー |
Gmorning084
|
| 提出日時 | 2017-05-21 20:53:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-19 08:10:30 |
| 合計ジャッジ時間 | 2,320 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 30 |
ソースコード
nx = int(input())-1
a = list(input().split(" "))
a.sort()
i = int(nx/2)
import math
j = math.ceil(nx/2)
ans = 0.0
ans = (int(a[i])+int(a[j]))/2
print(ans)
Gmorning084