結果
| 問題 | No.157 2つの空洞 |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2017-10-02 03:18:13 |
| 言語 | Perl (5.44.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 2,000 ms |
| + 238µs | |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 6,272 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-10-12 16:15:51 |
| 合計ジャッジ時間 | 1,584 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 17 |
コンパイルメッセージ
Unquoted string "a" may clash with future reserved word at Main.pl line 3. Unquoted string "j" may clash with future reserved word at Main.pl line 3. Main.pl syntax OK
ソースコード
$/=$W+=<>;
$_=<>;
@a=('!',A..Z,a..j);
s/\./!/;
s/\.(.{$W})?!|!(.{$W})?\./!$1$2!/s||
s/$a[$i](.{$W})?#/$a[$i]$1$a[$i+1]/s||
s/#(.{$W})?$a[$i]/$a[$i+1]$1$a[$i]/s||
$i++until/\w(.{$W})?\.|\.(.{$W})?\w/s;
print$i+1
%20