結果
問題 | No.157 2つの空洞 |
ユーザー |
![]() |
提出日時 | 2017-10-02 03:54:08 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-15 22:00:37 |
合計ジャッジ時間 | 995 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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
ソースコード
$/=$%=<>;$_=<>;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