結果
問題 | No.275 中央値を求めよ |
ユーザー |
![]() |
提出日時 | 2018-12-04 22:24:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 164 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-08 09:19:04 |
合計ジャッジ時間 | 2,277 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 30 |
ソースコード
s = int(input()) m = [int(k) for k in sorted(input().split())] g = s//2 l = m[g-1]+m[g] (print(l/2) if l/2*10%10 != 0 else print(l//2))if s%2 == 0 else print(m[g])