結果

問題 No.275 中央値を求めよ
ユーザー %20%20
提出日時 2016-12-27 01:09:47
言語 Perl
(5.38.0)
結果
AC  
実行時間 9 ms / 1,000 ms
コード長 70 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 5,348 KB
実行使用メモリ 5,556 KB
最終ジャッジ日時 2023-09-07 05:45:41
合計ジャッジ時間 2,475 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,180 KB
testcase_01 AC 6 ms
5,040 KB
testcase_02 AC 6 ms
5,284 KB
testcase_03 AC 7 ms
5,144 KB
testcase_04 AC 7 ms
5,368 KB
testcase_05 AC 6 ms
5,208 KB
testcase_06 AC 6 ms
5,076 KB
testcase_07 AC 8 ms
5,172 KB
testcase_08 AC 6 ms
5,036 KB
testcase_09 AC 7 ms
5,284 KB
testcase_10 AC 6 ms
5,372 KB
testcase_11 AC 6 ms
5,204 KB
testcase_12 AC 7 ms
5,160 KB
testcase_13 AC 6 ms
5,144 KB
testcase_14 AC 6 ms
5,068 KB
testcase_15 AC 9 ms
5,464 KB
testcase_16 AC 8 ms
5,292 KB
testcase_17 AC 8 ms
5,320 KB
testcase_18 AC 8 ms
5,328 KB
testcase_19 AC 8 ms
5,232 KB
testcase_20 AC 8 ms
5,248 KB
testcase_21 AC 7 ms
5,128 KB
testcase_22 AC 8 ms
5,556 KB
testcase_23 AC 8 ms
5,300 KB
testcase_24 AC 7 ms
5,380 KB
testcase_25 AC 9 ms
5,240 KB
testcase_26 AC 8 ms
5,464 KB
testcase_27 AC 8 ms
5,268 KB
testcase_28 AC 7 ms
5,100 KB
testcase_29 AC 7 ms
5,380 KB
testcase_30 AC 6 ms
5,284 KB
testcase_31 AC 8 ms
5,288 KB
testcase_32 AC 7 ms
5,368 KB
testcase_33 AC 8 ms
5,488 KB
testcase_34 AC 6 ms
5,164 KB
testcase_35 AC 7 ms
5,236 KB
testcase_36 AC 7 ms
5,296 KB
testcase_37 AC 7 ms
5,372 KB
testcase_38 AC 6 ms
5,232 KB
testcase_39 AC 7 ms
5,208 KB
testcase_40 AC 8 ms
5,344 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$N=<>;@A=sort{$a-$b}glob<>;
print$N%2?$A[$N/2]:($A[$N/2-1]+$A[$N/2])/2
0