結果
| 問題 | No.275 中央値を求めよ |
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-09-07 19:18:26 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 115 bytes |
| 記録 | |
| コンパイル時間 | 245 ms |
| コンパイル使用メモリ | 77,988 KB |
| 最終ジャッジ日時 | 2025-12-03 16:48:06 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 34 RE * 4 |
ソースコード
N = input()
A = map(int, raw_input().split())
if N % 2 == 1:
print(A[N/2+1])
else:
print((A[N/2]+A[N/2+1]))
tnoda_