結果

問題 No.13 囲みたい!
コンテスト
ユーザー 👑 tails
提出日時 2019-07-26 00:40:47
言語 Perl
(5.42.1)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 168 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 497 ms
コンパイル使用メモリ 7,972 KB
実行使用メモリ 9,216 KB
最終ジャッジ日時 2026-03-23 10:35:42
合計ジャッジ時間 1,631 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 #
raw source code

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