結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-04 15:59:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 1,897 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 52,736 KB |
| 最終ジャッジ日時 | 2026-06-02 06:42:32 |
| 合計ジャッジ時間 | 4,565 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 38 |
ソースコード
import math N = int(input()) A = map(int,input().split()) # 昇順ソート A = sorted(A) print(A) if N % 2 == 0: print(int((A[(N-1) // 2] + A[math.ceil((N-1) / 2)]) / 2)) else: print(A[int(N / 2)])