結果

問題 No.437 cwwゲーム
ユーザー tailstails
提出日時 2016-10-29 01:00:24
言語 Perl
(5.38.2)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 126 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 6,684 KB
最終ジャッジ日時 2024-04-27 02:23:28
合計ジャッジ時間 609 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
Array found where operator expected (Missing operator before "@_"?) at Main.pl line 1, near "/([^0])(.*)(?!\1)(.)(.*)\3(?{push@a,"$1$3$3 $`$2$4$'"})^/for@_"
Unknown regexp modifier "/f" at Main.pl line 1, at end of line
Unknown regexp modifier "/r" at Main.pl line 1, at end of line
syntax error at Main.pl line 1, near "/([^0])(.*)(?!\1)(.)(.*)\3(?{push@a,"$1$3$3 $`$2$4$'"})^/for@_"
Main.pl had compilation errors.

ソースコード

diff #

sub f{local@a;/([^0])(.*)(?!\1)(.)(.*)\3(?{push@a,"$1$3$3 $`$2$4$'"})^/for@_;my$s=0;/ /,$s+=$-=$`-$s+f("$'")for@a;$s}print f<>
0