結果
問題 | No.275 中央値を求めよ |
ユーザー |
![]() |
提出日時 | 2018-11-25 22:44:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 432 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-25 22:07:40 |
合計ジャッジ時間 | 2,473 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 38 |
ソースコード
N = input()f = input()s_f = f.split()list_f = [int(v) for v in s_f]list_s = sorted(list_s)if N % 2 == 1:a = (N + 1) // 2print(list_s[a - 1])else:a = N // 2b = list_s[a - 1]c = list_s[a]d = (b + c) / 2print(d)