結果

問題 No.21 平均の差
ユーザー nukosukenukosuke
提出日時 2016-10-19 17:25:46
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 436 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 130,548 KB
実行使用メモリ 134,120 KB
最終ジャッジ日時 2023-08-16 03:50:33
合計ジャッジ時間 5,909 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 407 ms
132,020 KB
testcase_01 AC 436 ms
133,952 KB
testcase_02 AC 428 ms
134,116 KB
testcase_03 AC 426 ms
133,724 KB
testcase_04 AC 420 ms
132,048 KB
testcase_05 AC 421 ms
134,120 KB
testcase_06 AC 432 ms
134,004 KB
testcase_07 AC 424 ms
134,044 KB
testcase_08 AC 430 ms
134,000 KB
testcase_09 AC 424 ms
134,116 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

use v6;
my $N = get().Int;
my $K = get().Int;
my @n = ();

for 1..$N { @n.push(get().Int); }
@n = @n.sort({ $^a <=> $^b });

say @n.max() - @n.min();
0