結果

問題 No.275 中央値を求めよ
ユーザー neko_the_shadowneko_the_shadow
提出日時 2016-08-19 23:03:20
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 456 ms / 1,000 ms
コード長 175 bytes
コンパイル時間 1,826 ms
コンパイル使用メモリ 133,140 KB
実行使用メモリ 134,904 KB
最終ジャッジ日時 2023-09-07 05:34:35
合計ジャッジ時間 21,337 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 432 ms
134,244 KB
testcase_01 AC 435 ms
134,624 KB
testcase_02 AC 434 ms
134,568 KB
testcase_03 AC 437 ms
134,500 KB
testcase_04 AC 434 ms
134,260 KB
testcase_05 AC 442 ms
132,516 KB
testcase_06 AC 448 ms
134,556 KB
testcase_07 AC 453 ms
134,752 KB
testcase_08 AC 444 ms
134,536 KB
testcase_09 AC 453 ms
134,644 KB
testcase_10 AC 456 ms
134,900 KB
testcase_11 AC 442 ms
134,184 KB
testcase_12 AC 433 ms
134,428 KB
testcase_13 AC 444 ms
134,372 KB
testcase_14 AC 431 ms
134,368 KB
testcase_15 AC 445 ms
134,568 KB
testcase_16 AC 447 ms
134,736 KB
testcase_17 AC 444 ms
134,692 KB
testcase_18 AC 444 ms
134,684 KB
testcase_19 AC 436 ms
134,492 KB
testcase_20 AC 454 ms
132,488 KB
testcase_21 AC 455 ms
134,780 KB
testcase_22 AC 450 ms
134,584 KB
testcase_23 AC 450 ms
134,656 KB
testcase_24 AC 452 ms
133,196 KB
testcase_25 AC 453 ms
134,728 KB
testcase_26 AC 449 ms
134,512 KB
testcase_27 AC 436 ms
134,600 KB
testcase_28 AC 435 ms
134,236 KB
testcase_29 AC 447 ms
134,640 KB
testcase_30 AC 436 ms
134,732 KB
testcase_31 AC 441 ms
134,740 KB
testcase_32 AC 441 ms
134,632 KB
testcase_33 AC 451 ms
134,504 KB
testcase_34 AC 436 ms
134,296 KB
testcase_35 AC 446 ms
134,904 KB
testcase_36 AC 452 ms
131,152 KB
testcase_37 AC 452 ms
134,752 KB
testcase_38 AC 451 ms
134,488 KB
testcase_39 AC 450 ms
134,328 KB
testcase_40 AC 450 ms
134,500 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

my $n = Int(get());
my @nums = get().split(" ").map({Int($_)}).sort;

if $n % 2 == 0 {
    say (@nums[$n div 2 - 1] + @nums[$n div 2]) / 2;
} else {
    say @nums[$n div 2];
}
0