結果
問題 |
No.275 中央値を求めよ
|
ユーザー |
|
提出日時 | 2017-07-02 22:14:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 148 bytes |
コンパイル時間 | 277 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-05 08:48:55 |
合計ジャッジ時間 | 2,525 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 6 WA * 28 RE * 4 |
ソースコード
def main(): n=int(input()) A=tuple(map(int,input().split())) a=sorted(A) idx=n//2 num=(a[idx]+a[idx+1])/2 print(num) main()