結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-05-24 06:24:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 1,000 ms |
| コード長 | 121 bytes |
| 記録 | |
| コンパイル時間 | 1,687 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-29 11:01:17 |
| 合計ジャッジ時間 | 9,091 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
n=int(input()) a=list(map(int,input().split())) a.sort() if n%2==0: print((a[n//2-1]+a[n//2])/2) else: print(a[n//2])
あかりき