結果

問題 No.275 中央値を求めよ
ユーザー convexineqconvexineq
提出日時 2020-12-26 17:23:21
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 105 bytes
コンパイル時間 921 ms
使用メモリ 75,936 KB
最終ジャッジ日時 2022-11-23 16:04:02
合計ジャッジ時間 6,274 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 83 ms
75,668 KB
testcase_01 AC 80 ms
75,724 KB
testcase_02 AC 80 ms
75,820 KB
testcase_03 AC 80 ms
75,476 KB
testcase_04 AC 81 ms
75,440 KB
testcase_05 AC 81 ms
75,512 KB
testcase_06 AC 81 ms
75,748 KB
testcase_07 AC 83 ms
75,556 KB
testcase_08 AC 80 ms
75,704 KB
testcase_09 AC 81 ms
75,716 KB
testcase_10 AC 80 ms
75,868 KB
testcase_11 AC 80 ms
75,492 KB
testcase_12 AC 81 ms
75,448 KB
testcase_13 AC 79 ms
75,564 KB
testcase_14 AC 80 ms
75,768 KB
testcase_15 AC 81 ms
75,792 KB
testcase_16 AC 81 ms
75,756 KB
testcase_17 AC 81 ms
75,496 KB
testcase_18 AC 83 ms
75,596 KB
testcase_19 AC 84 ms
75,512 KB
testcase_20 AC 80 ms
75,740 KB
testcase_21 AC 81 ms
75,936 KB
testcase_22 AC 80 ms
75,684 KB
testcase_23 AC 81 ms
75,608 KB
testcase_24 AC 81 ms
75,788 KB
testcase_25 AC 83 ms
75,680 KB
testcase_26 AC 82 ms
75,780 KB
testcase_27 AC 83 ms
75,832 KB
testcase_28 AC 82 ms
75,556 KB
testcase_29 AC 80 ms
75,508 KB
testcase_30 AC 79 ms
75,600 KB
testcase_31 AC 81 ms
75,740 KB
testcase_32 AC 79 ms
75,444 KB
testcase_33 AC 82 ms
75,708 KB
testcase_34 AC 82 ms
75,472 KB
testcase_35 AC 80 ms
75,712 KB
testcase_36 AC 80 ms
75,604 KB
testcase_37 AC 82 ms
75,560 KB
testcase_38 AC 81 ms
75,720 KB
testcase_39 AC 80 ms
75,832 KB
testcase_40 AC 81 ms
75,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
*a, = map(int,input().split())
a.sort()
print(a[n//2] if n%2 else (a[n//2]+a[n//2-1])/2)
0