結果

問題 No.157 2つの空洞
ユーザー tailstails
提出日時 2019-09-03 15:47:32
言語 Perl
(5.38.0)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 5,304 KB
実行使用メモリ 5,300 KB
最終ジャッジ日時 2023-08-25 18:38:01
合計ジャッジ時間 1,379 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,696 KB
testcase_01 AC 3 ms
4,504 KB
testcase_02 AC 2 ms
4,588 KB
testcase_03 AC 2 ms
4,536 KB
testcase_04 AC 3 ms
4,548 KB
testcase_05 AC 2 ms
4,748 KB
testcase_06 AC 3 ms
4,672 KB
testcase_07 AC 3 ms
4,816 KB
testcase_08 AC 2 ms
4,780 KB
testcase_09 AC 4 ms
4,772 KB
testcase_10 AC 3 ms
4,536 KB
testcase_11 AC 3 ms
4,664 KB
testcase_12 AC 3 ms
4,668 KB
testcase_13 AC 2 ms
4,876 KB
testcase_14 AC 6 ms
4,980 KB
testcase_15 AC 11 ms
4,808 KB
testcase_16 AC 4 ms
4,736 KB
testcase_17 AC 14 ms
5,300 KB
testcase_18 AC 4 ms
4,824 KB
testcase_19 AC 2 ms
4,656 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$/=$%=<>;$_=<>;s/\./a/;0while s/\.(.{$%}|)a|a(.{$%}|)\./a$1$2a/s;++$%;m{(\..*a|a.*\.)(?{$=-=$-=$=+1-"@+"/$%%$%+"@-"/$%-abs"@-"%$%-"@+"%$%+1})^}s;print$=
0