結果

問題 No.572 妖精の演奏
ユーザー tailstails
提出日時 2017-10-10 15:25:59
言語 Perl
(5.38.0)
結果
AC  
実行時間 1,762 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 660 ms
コンパイル使用メモリ 5,456 KB
実行使用メモリ 7,156 KB
最終ジャッジ日時 2023-08-10 22:26:05
合計ジャッジ時間 8,261 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
5,324 KB
testcase_01 AC 18 ms
5,412 KB
testcase_02 AC 6 ms
5,184 KB
testcase_03 AC 8 ms
5,232 KB
testcase_04 AC 16 ms
5,208 KB
testcase_05 AC 70 ms
5,332 KB
testcase_06 AC 112 ms
5,400 KB
testcase_07 AC 42 ms
5,240 KB
testcase_08 AC 52 ms
5,212 KB
testcase_09 AC 71 ms
5,296 KB
testcase_10 AC 530 ms
6,024 KB
testcase_11 AC 1,168 ms
6,636 KB
testcase_12 AC 1,342 ms
6,668 KB
testcase_13 AC 1,762 ms
7,156 KB
testcase_14 AC 285 ms
5,612 KB
testcase_15 AC 345 ms
5,652 KB
testcase_16 AC 227 ms
5,528 KB
testcase_17 AC 370 ms
5,712 KB
testcase_18 AC 41 ms
5,372 KB
testcase_19 AC 6 ms
5,296 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

sub f{my($c,$x,$y)=@_;$$c[$x][$y]//=(sort{$b-$a}map f($c>>1,$x,$_)+f($c+1>>1,$_,$y),@m)[0]}$n=<>-1;@m=0..<>-1;@1=map[glob],<>;map{//;$%+=$-=f($n,$_,$')-$%for@m}@m;print$%
0