結果

問題 No.13 囲みたい!
ユーザー tailstails
提出日時 2019-07-26 00:40:47
言語 Perl
(5.38.2)
結果
AC  
実行時間 231 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 5,324 KB
実行使用メモリ 8,272 KB
最終ジャッジ日時 2023-09-15 00:09:11
合計ジャッジ時間 1,976 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,104 KB
testcase_01 AC 6 ms
5,192 KB
testcase_02 AC 6 ms
5,280 KB
testcase_03 AC 37 ms
8,140 KB
testcase_04 AC 231 ms
8,184 KB
testcase_05 AC 37 ms
8,272 KB
testcase_06 AC 35 ms
8,132 KB
testcase_07 AC 35 ms
8,216 KB
testcase_08 AC 33 ms
8,072 KB
testcase_09 AC 33 ms
8,032 KB
testcase_10 AC 11 ms
5,676 KB
testcase_11 AC 26 ms
7,400 KB
testcase_12 AC 8 ms
5,320 KB
testcase_13 AC 14 ms
6,020 KB
testcase_14 AC 15 ms
6,072 KB
testcase_15 AC 6 ms
5,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "im" may clash with future reserved word at Main.pl line 1.
Unquoted string "possible" may clash with future reserved word at Main.pl line 1.
Name "main::i" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

sub r{($x)=@_;$x-$p[$x]?r($p[$x]):$x}sub f{$a[$_]==$a[$_+$d]&&($p[$u=r$_]=r$_+$d)==$u}$/=<>;@a=glob<>;print!grep(($_+1)%$/&&f($d=1)||f($d=$/),@i=@p=0..$#a)&&im,possible
0