結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,180 KB
testcase_01 AC 6 ms
5,180 KB
testcase_02 AC 6 ms
5,188 KB
testcase_03 AC 41 ms
8,212 KB
testcase_04 AC 200 ms
8,136 KB
testcase_05 AC 39 ms
8,084 KB
testcase_06 AC 38 ms
8,272 KB
testcase_07 AC 38 ms
8,052 KB
testcase_08 AC 36 ms
8,236 KB
testcase_09 AC 36 ms
8,072 KB
testcase_10 AC 11 ms
5,632 KB
testcase_11 AC 29 ms
7,296 KB
testcase_12 AC 8 ms
5,396 KB
testcase_13 AC 16 ms
6,000 KB
testcase_14 AC 16 ms
6,108 KB
testcase_15 AC 6 ms
5,228 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-$p[$x]?r($x=$p[$x]):$x}sub f{$a[$_]==$a[$x=$_+"@_ 1"]&&($p[$u=r$x=$_]=r)==$u}$/=<>;@a=glob<>;print!grep(($_+1)%$/&&f||f($/),@i=@p=0..$#a)&&im,possible
0