結果

問題 No.609 Noelちゃんと星々
ユーザー tailstails
提出日時 2017-12-09 00:05:13
言語 Perl
(5.38.2)
結果
AC  
実行時間 427 ms / 2,000 ms
コード長 68 bytes
コンパイル時間 535 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 31,928 KB
最終ジャッジ日時 2023-08-19 23:12:25
合計ジャッジ時間 8,066 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 221 ms
25,728 KB
testcase_01 AC 141 ms
15,376 KB
testcase_02 AC 96 ms
12,128 KB
testcase_03 AC 131 ms
14,620 KB
testcase_04 AC 65 ms
9,796 KB
testcase_05 AC 359 ms
30,544 KB
testcase_06 AC 314 ms
26,932 KB
testcase_07 AC 179 ms
17,924 KB
testcase_08 AC 40 ms
7,768 KB
testcase_09 AC 117 ms
13,352 KB
testcase_10 AC 232 ms
21,200 KB
testcase_11 AC 213 ms
20,044 KB
testcase_12 AC 272 ms
23,836 KB
testcase_13 AC 51 ms
8,488 KB
testcase_14 AC 24 ms
6,580 KB
testcase_15 AC 335 ms
27,392 KB
testcase_16 AC 394 ms
31,420 KB
testcase_17 AC 308 ms
25,656 KB
testcase_18 AC 103 ms
12,028 KB
testcase_19 AC 325 ms
26,992 KB
testcase_20 AC 410 ms
31,832 KB
testcase_21 AC 418 ms
31,784 KB
testcase_22 AC 422 ms
31,244 KB
testcase_23 AC 427 ms
31,928 KB
testcase_24 AC 427 ms
31,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
@y=sort{$a-$b}glob<>;
$a=$y[@y/2];
$s+=abs$_-$a for @y;
print$s;
0