結果

問題 No.556 仁義なきサルたち
ユーザー %20%20
提出日時 2018-01-10 22:03:43
言語 Perl
(5.38.2)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 486 ms
コンパイル使用メモリ 5,372 KB
実行使用メモリ 12,640 KB
最終ジャッジ日時 2023-08-25 10:40:00
合計ジャッジ時間 1,913 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,224 KB
testcase_01 AC 7 ms
5,108 KB
testcase_02 AC 6 ms
5,000 KB
testcase_03 AC 7 ms
5,084 KB
testcase_04 AC 6 ms
5,120 KB
testcase_05 AC 7 ms
5,128 KB
testcase_06 AC 7 ms
5,280 KB
testcase_07 AC 8 ms
5,264 KB
testcase_08 AC 8 ms
5,328 KB
testcase_09 AC 9 ms
5,232 KB
testcase_10 AC 12 ms
5,552 KB
testcase_11 AC 15 ms
5,812 KB
testcase_12 AC 14 ms
5,676 KB
testcase_13 AC 12 ms
5,680 KB
testcase_14 AC 34 ms
7,460 KB
testcase_15 AC 47 ms
7,896 KB
testcase_16 AC 38 ms
7,856 KB
testcase_17 AC 66 ms
9,488 KB
testcase_18 AC 106 ms
11,496 KB
testcase_19 AC 94 ms
12,512 KB
testcase_20 AC 99 ms
12,640 KB
testcase_21 AC 99 ms
12,468 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{$p[$_]=$_-($p[$_]||$_)?f(local$_=$p[$_]):$_}$_?print f,$/:map{@{$p[$a]=$b}[$a-$b&&@$a+@$b]=($a,$b)=sort{@$a-@$b||$b-$a}map f,glob}<>for 0..<>
0