結果

問題 No.157 2つの空洞
ユーザー %20
提出日時 2017-10-02 04:02:07
言語 Perl
(5.40.0)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,760 KB
最終ジャッジ日時 2024-11-15 22:05:14
合計ジャッジ時間 1,012 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "a" may clash with future reserved word at Main.pl line 1.
Unquoted string "g" may clash with future reserved word at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

$/+=<>;$_=<>;s/\./	/;$e="(.{$/})?";($a,$b)=(v9,A..Z,a..g)[$i,$i+1],s/\.$e	|	$e?\./	$1$2	/s||s/$a$e#/$a$1$b/s|s/#$e$a/$b$1$a/s||$i++until/\w$e\.|\.$e\w/s;print$i+1
0