結果

問題 No.13 囲みたい!
ユーザー tails
提出日時 2019-07-26 00:40:47
言語 Perl
(5.40.0)
結果
AC  
実行時間 203 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 6,820 KB
実行使用メモリ 9,088 KB
最終ジャッジ日時 2024-07-02 06:20:06
合計ジャッジ時間 1,627 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
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