結果
問題 | No.275 中央値を求めよ |
ユーザー |
|
提出日時 | 2017-10-23 23:42:32 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 1,000 ms |
コード長 | 180 bytes |
コンパイル時間 | 136 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-06-25 00:42:54 |
合計ジャッジ時間 | 1,754 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 |
ソースコード
N = int(raw_input())A = sorted(map(int, raw_input().split(' ')))if len(A) % 2:print float(A[int(len(A)/2)])else:print float(A[int(len(A)/2)] + A[int(len(A)/2)-1]) / 2